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:
parent
35cbd91dd1
commit
4d931f28cb
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user