]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
use FindFirstFileA instead of FindFirstFile
authorPrzemyslaw Skibinski <inikep@gmail.com>
Wed, 15 Feb 2017 16:13:35 +0000 (17:13 +0100)
committerPrzemyslaw Skibinski <inikep@gmail.com>
Wed, 15 Feb 2017 16:13:35 +0000 (17:13 +0100)
programs/util.h

index c03bd1d191229db4597e21089ec8046598a0b75b..0f588f11077975363ea60833c7af432622eccfc8 100644 (file)
@@ -269,7 +269,7 @@ UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_
 {
     char* path;
     int dirLength, fnameLength, pathLength, nbFiles = 0;
-    WIN32_FIND_DATA cFile;
+    WIN32_FIND_DATAA cFile;
     HANDLE hFile;
 
     dirLength = (int)strlen(dirName);
@@ -281,7 +281,7 @@ UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_
     path[dirLength+1] = '*';
     path[dirLength+2] = 0;
 
-    hFile=FindFirstFile(path, &cFile);
+    hFile=FindFirstFileA(path, &cFile);
     if (hFile == INVALID_HANDLE_VALUE) {
         fprintf(stderr, "Cannot open directory '%s'\n", dirName);
         return 0;
@@ -318,7 +318,7 @@ UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_
             }
         }
         free(path);
-    } while (FindNextFile(hFile, &cFile));
+    } while (FindNextFileA(hFile, &cFile));
 
     FindClose(hFile);
     return nbFiles;