aboutsummaryrefslogtreecommitdiff
path: root/src/tools/mmaps_generator
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-06-02 14:21:13 +0200
committerOvahlord <dreadkiller@gmx.de>2024-06-20 01:15:34 +0200
commit970ca6093c590d390d6cfd649ce7f8a9febbd5f7 (patch)
tree94bcae1e0b71b09139343ab0efdc60f2309b4ead /src/tools/mmaps_generator
parentb6714f5746dd2468488b51a6f2b9eb26a6c155e9 (diff)
Core/Misc: Fixed windows _UNICODE incompatibilities
(cherry picked from commit fd4ffc81b2593dbf5554b553828a736ac6263e98)
Diffstat (limited to 'src/tools/mmaps_generator')
-rw-r--r--src/tools/mmaps_generator/PathCommon.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/mmaps_generator/PathCommon.h b/src/tools/mmaps_generator/PathCommon.h
index c098ff02f4c..17d354a0997 100644
--- a/src/tools/mmaps_generator/PathCommon.h
+++ b/src/tools/mmaps_generator/PathCommon.h
@@ -85,12 +85,12 @@ namespace MMAP
{
#ifdef WIN32
HANDLE hFind;
- WIN32_FIND_DATA findFileInfo;
+ WIN32_FIND_DATAA findFileInfo;
std::string directory;
directory = dirpath + "/" + filter;
- hFind = FindFirstFile(directory.c_str(), &findFileInfo);
+ hFind = FindFirstFileA(directory.c_str(), &findFileInfo);
if (hFind == INVALID_HANDLE_VALUE)
return LISTFILE_DIRECTORY_NOT_FOUND;
@@ -99,7 +99,7 @@ namespace MMAP
if (strcmp(findFileInfo.cFileName, ".") != 0 && strcmp(findFileInfo.cFileName, "..") != 0)
fileList.push_back(std::string(findFileInfo.cFileName));
}
- while (FindNextFile(hFind, &findFileInfo));
+ while (FindNextFileA(hFind, &findFileInfo));
FindClose(hFind);