1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-24 05:31:03 +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
condition was added */
void *findByHash(LPCWSTR module, uint32_t hash)
void *findByHash(LPCSTR module, uint32_t hash)
{
HMODULE hLibrary;
PIMAGE_DOS_HEADER pDOSHdr;
@ -83,7 +83,7 @@ void *findByHash(LPCWSTR module, uint32_t hash)
PDWORD pdwAddress, pdwNames;
PWORD pwOrd;
if ((hLibrary = LoadLibrary(module)) == NULL)
if ((hLibrary = LoadLibraryA(module)) == NULL)
return NULL;
/* grab DOS headers & verify */