aboutsummaryrefslogtreecommitdiff
path: root/ports/wildmidi/0002-use-ansi.patch
blob: 68acb7b3452469f6e57bf1e89cc0a866d53eb346 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;