File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -85,19 +85,17 @@ Firebird::PathName ConfigCache::getFileName()
8585#ifdef WIN_NT
8686void ConfigCache::File::getTime (DWORD& timeLow, DWORD& timeHigh)
8787{
88- WIN32_FIND_DATA findFileData;
89- HANDLE hFind = FindFirstFile (fileName.c_str (), &findFileData);
88+ WIN32_FILE_ATTRIBUTE_DATA fInfo ;
9089
91- if (hFind == INVALID_HANDLE_VALUE )
90+ if (! GetFileAttributesEx (fileName. c_str (), GetFileExInfoStandard, & fInfo ) )
9291 {
9392 timeLow = 0 ;
9493 timeHigh = 0 ;
9594 return ;
9695 }
9796
98- FindClose (hFind);
99- timeLow = findFileData.ftLastWriteTime .dwLowDateTime ;
100- timeHigh = findFileData.ftLastWriteTime .dwHighDateTime ;
97+ timeLow = fInfo .ftLastWriteTime .dwLowDateTime ;
98+ timeHigh = fInfo .ftLastWriteTime .dwHighDateTime ;
10199}
102100#else
103101void ConfigCache::File::getTime (timespec& time)
You can’t perform that action at this time.
0 commit comments