diff --git a/desmume/src/fs-windows.c b/desmume/src/fs-windows.c index de60829b8..8437679dc 100644 --- a/desmume/src/fs-windows.c +++ b/desmume/src/fs-windows.c @@ -1,5 +1,8 @@ #include "fs.h" +#include +#include +#include #include const char FS_SEPARATOR = '\\'; @@ -23,7 +26,7 @@ void * FsReadFirst(const char * p, FsEntry * entry) { entry->flags = FS_IS_DIR; } - ret = malloc(sizeof(HANDLE)); + ret = (void**)malloc(sizeof(HANDLE)); *ret = hFind; return ret; }