Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit f6f86d3

Browse files
committed
s/hFind/find_handle/
1 parent b503fdc commit f6f86d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/disk_interface.cc

+5-5
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ bool StatAllFilesInDir(const string& dir, map<string, TimeStamp>* stamps,
8686
bool quiet) {
8787
// FindExInfoBasic is 30% faster than FindExInfoStandard.
8888
WIN32_FIND_DATAA ffd;
89-
HANDLE hFind = FindFirstFileExA((dir + "\\*").c_str(), FindExInfoBasic, &ffd,
90-
FindExSearchNameMatch, NULL, 0);
89+
HANDLE find_handle = FindFirstFileExA((dir + "\\*").c_str(), FindExInfoBasic,
90+
&ffd, FindExSearchNameMatch, NULL, 0);
9191

92-
if (hFind == INVALID_HANDLE_VALUE) {
92+
if (find_handle == INVALID_HANDLE_VALUE) {
9393
DWORD err = GetLastError();
9494
if (err == ERROR_FILE_NOT_FOUND || err == ERROR_PATH_NOT_FOUND)
9595
return true;
@@ -106,8 +106,8 @@ bool StatAllFilesInDir(const string& dir, map<string, TimeStamp>* stamps,
106106
transform(lowername.begin(), lowername.end(), lowername.begin(), ::tolower);
107107
stamps->insert(make_pair(lowername,
108108
TimeStampFromFileTime(ffd.ftLastWriteTime)));
109-
} while (FindNextFileA(hFind, &ffd));
110-
FindClose(hFind);
109+
} while (FindNextFileA(find_handle, &ffd));
110+
FindClose(find_handle);
111111
return true;
112112
}
113113
#endif // _WIN32

0 commit comments

Comments
 (0)