hide some compiler warnings.

This commit is contained in:
Tavis Ormandy
2019-08-20 14:28:27 -07:00
parent eb7b94e36f
commit cbe8dc034e
3 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -579,7 +579,7 @@ int link_pe_images(struct pe_image *pe_image, unsigned short n)
IMAGE_TLS_DIRECTORY *);
// This means that slot 0 is reserved.
LocalStorage[0] = TlsData->RawDataStart;
LocalStorage[0] = (uintptr_t) TlsData->RawDataStart;
}
}
+2
View File
@@ -15,6 +15,8 @@
#include "util.h"
#include "winstrings.h"
extern void WINAPI SetLastError(DWORD dwErrCode);
static HANDLE WINAPI CreateEventW(PVOID lpEventAttributes, BOOL bManualReset, BOOL bInitialState, PWCHAR lpName)
{
char *AnsiName;
+6 -7
View File
@@ -18,31 +18,30 @@
static __stdcall PVOID CreateThreadPoolWait(PVOID pwa)
{
DebugLog("");
return 0x41414141;
return (PVOID) 0x41414141;
}
static __stdcall PVOID CreateThreadPool(PVOID reserved)
{
DebugLog("");
return 0x41414141;
return (PVOID) 0x41414141;
}
static __stdcall PVOID CreateThreadpoolTimer(PVOID pfnti, PVOID pv, PVOID pcbe)
{
DebugLog("");
return 0x41414141;
return (PVOID) 0x41414141;
}
static __stdcall PVOID CreateThreadpoolWork(PVOID pfnwk, PVOID pv, PVOID pcbe)
{
DebugLog("");
return 0x41414141;
return (PVOID) 0x41414141;
}
static __stdcall PVOID CloseThreadpoolTimer(PVOID pti)
static __stdcall void CloseThreadpoolTimer(PVOID pti)
{
DebugLog("");
return NULL;
DebugLog("%p", pti);
}
static __stdcall PVOID CreateThreadpoolWait() { DebugLog(""); return NULL; }