mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 14:40:25 +08:00
23 lines
815 B
Diff
23 lines
815 B
Diff
diff --git a/src/file_io.c b/src/file_io.c
|
|
index 9db9759..7110e8b 100644
|
|
--- a/src/file_io.c
|
|
+++ b/src/file_io.c
|
|
@@ -118,7 +118,7 @@ void *_WM_BufferFile(const char *filename, uint32_t *size) {
|
|
#elif defined(_WIN32)
|
|
int buffer_fd;
|
|
HANDLE h;
|
|
- WIN32_FIND_DATA wfd;
|
|
+ WIN32_FIND_DATAA wfd;
|
|
#elif defined(__OS2__) || defined(__EMX__)
|
|
int buffer_fd;
|
|
HDIR h = HDIR_CREATE;
|
|
@@ -186,7 +186,7 @@ void *_WM_BufferFile(const char *filename, uint32_t *size) {
|
|
}
|
|
*size = f.ff_fsize;
|
|
#elif defined(_WIN32)
|
|
- if ((h = FindFirstFile(buffer_file, &wfd)) == INVALID_HANDLE_VALUE) {
|
|
+ if ((h = FindFirstFileA(buffer_file, &wfd)) == INVALID_HANDLE_VALUE) {
|
|
_WM_GLOBAL_ERROR(__FUNCTION__, __LINE__, WM_ERR_STAT, filename, ENOENT);
|
|
free(buffer_file);
|
|
return NULL;
|