Bot: Fixed MSVC warnings

This commit is contained in:
CPunch 2022-07-08 12:58:17 -05:00
parent 35cbd91dd1
commit 4d931f28cb
1 changed files with 2 additions and 2 deletions

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 */