From f864aff1b85e31210bcaa6d41130398cb7e02ccb Mon Sep 17 00:00:00 2001 From: Jeffery Myers Date: Mon, 17 Jan 2022 08:49:31 -0800 Subject: [PATCH] Fix a signature error with the windows calls in GetApplicationDirectory for 32 bit builds. --- src/rcore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rcore.c b/src/rcore.c index 8e93709ba..08f18f717 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -166,9 +166,9 @@ #ifndef MAX_PATH #define MAX_PATH 1025 #endif - unsigned int GetModuleFileNameA( void* hModule, const char* lpFilename, unsigned int nSize); - unsigned int GetModuleFileNameW( void* hModule, const unsigned short* lpFilename, unsigned int nSize); - int WideCharToMultiByte(unsigned int cp, unsigned long flags, const unsigned short *widestr, int cchwide, char *str, int cbmb, const char *defchar, int *used_default); + __declspec(dllimport) unsigned long __stdcall GetModuleFileNameA(void* hModule, void* lpFilename, unsigned long nSize); + __declspec(dllimport) unsigned long __stdcall GetModuleFileNameW(void* hModule, void* lpFilename, unsigned long nSize); + __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigned long flags, void* widestr, int cchwide, void* str, int cbmb, void* defchar, int* used_default); #elif defined(__linux__) #include #elif defined(__APPLE__)