Always use ANSI variants of Windows system functions.

This commit is contained in:
Mike Pall 2011-09-02 11:42:01 +02:00
parent 3e904ae274
commit 25a0e663db
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ static const char *ll_bcsym(void *lib, const char *sym)
if (lib) {
return (const char *)GetProcAddress((HINSTANCE)lib, sym);
} else {
HINSTANCE h = GetModuleHandle(NULL);
HINSTANCE h = GetModuleHandleA(NULL);
const char *p = (const char *)GetProcAddress(h, sym);
if (p == NULL && GetModuleHandleExA(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS,
(const char *)ll_bcsym, &h))

View File

@ -91,7 +91,7 @@ static PNTAVM ntavm;
static void INIT_MMAP(void)
{
ntavm = (PNTAVM)GetProcAddress(GetModuleHandle("ntdll.dll"),
ntavm = (PNTAVM)GetProcAddress(GetModuleHandleA("ntdll.dll"),
"NtAllocateVirtualMemory");
}