1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-21 20:40:05 +00:00

Bot: Fixed MSVC warnings

This commit is contained in:
CPunch 2022-07-08 12:58:17 -05:00
parent 35cbd91dd1
commit 4d931f28cb

View File

@ -74,7 +74,7 @@ uint32_t getHashName(LPCSTR cszName)
/* fork of the resolve_find() with the weird struct stripped. also library cleanup for the fail /* fork of the resolve_find() with the weird struct stripped. also library cleanup for the fail
condition was added */ condition was added */
void *findByHash(LPCWSTR module, uint32_t hash) void *findByHash(LPCSTR module, uint32_t hash)
{ {
HMODULE hLibrary; HMODULE hLibrary;
PIMAGE_DOS_HEADER pDOSHdr; PIMAGE_DOS_HEADER pDOSHdr;
@ -83,7 +83,7 @@ void *findByHash(LPCWSTR module, uint32_t hash)
PDWORD pdwAddress, pdwNames; PDWORD pdwAddress, pdwNames;
PWORD pwOrd; PWORD pwOrd;
if ((hLibrary = LoadLibrary(module)) == NULL) if ((hLibrary = LoadLibraryA(module)) == NULL)
return NULL; return NULL;
/* grab DOS headers & verify */ /* grab DOS headers & verify */