mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-04 04:16:12 +01:00
Minor code review
This commit is contained in:
@@ -394,7 +394,7 @@ namespace
|
||||
void SearchForFiles(const wchar_t* path, std::list<SConversion>& files, bool recursive)
|
||||
{
|
||||
// Process files
|
||||
WIN32_FIND_DATA findData = {};
|
||||
WIN32_FIND_DATAW findData = {};
|
||||
ScopedFindHandle hFile(safe_handle(FindFirstFileExW(path,
|
||||
FindExInfoBasic, &findData,
|
||||
FindExSearchNameMatch, nullptr,
|
||||
@@ -414,7 +414,7 @@ namespace
|
||||
files.push_back(conv);
|
||||
}
|
||||
|
||||
if (!FindNextFile(hFile.get(), &findData))
|
||||
if (!FindNextFileW(hFile.get(), &findData))
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -459,7 +459,7 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
if (!FindNextFile(hFile.get(), &findData))
|
||||
if (!FindNextFileW(hFile.get(), &findData))
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user