-
Deucе authored
Missing WINAPI decoration on function loaded from DLL. When called, this would corrupt the parameters to callers, presumably because the register allocater didn't know the call would tromp on something.
Deucе authoredMissing WINAPI decoration on function loaded from DLL. When called, this would corrupt the parameters to callers, presumably because the register allocater didn't know the call would tromp on something.
cl-winapi-needed.patch 541 B
diff --git io/file.c io/file.c
index 651f1a5..0858a32 100644
--- io/file.c
+++ io/file.c
@@ -5279,7 +5279,7 @@ CHECK_RETVAL_PTR STDC_NONNULL_ARG( ( 1, 2 ) ) \
static const char *getUncName( OUT_PTR UNIVERSAL_NAME_INFO *nameInfo,
IN_PTR const char *fileName )
{
- typedef DWORD ( *WNETGETUNIVERSALNAMEA )( LPCSTR lpLocalPath,
+ typedef DWORD ( WINAPI *WNETGETUNIVERSALNAMEA )( LPCSTR lpLocalPath,
DWORD dwInfoLevel, LPVOID lpBuffer, LPDWORD lpBufferSize );
WNETGETUNIVERSALNAMEA pWNetGetUniversalNameA;
HINSTANCE hMPR;