mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Always use ANSI variants of Windows system functions.
This commit is contained in:
parent
3e904ae274
commit
25a0e663db
@ -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))
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user