vcpkg/ports/wildmidi/0002-use-ansi.patch
2017-10-02 16:11:34 +02:00

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;