mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 12:03:45 +00:00
Fixed crash when map fails.
This commit is contained in:
parent
92f376f78b
commit
cd841a4a86
1 changed files with 5 additions and 0 deletions
|
@ -603,6 +603,11 @@ HMODULE PE_LoadImage( HANDLE hFile, LPCSTR filename, WORD *version )
|
||||||
load_addr = (DWORD)VirtualAlloc( NULL, vma_size,
|
load_addr = (DWORD)VirtualAlloc( NULL, vma_size,
|
||||||
MEM_RESERVE | MEM_COMMIT,
|
MEM_RESERVE | MEM_COMMIT,
|
||||||
PAGE_EXECUTE_READWRITE );
|
PAGE_EXECUTE_READWRITE );
|
||||||
|
if (!load_addr) {
|
||||||
|
FIXME_(win32)(
|
||||||
|
"FATAL: Couldn't load module %s (out of memory, %d needed)!\n", filename, vma_size);
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TRACE_(win32)("Load addr is %lx (base %lx), range %x\n",
|
TRACE_(win32)("Load addr is %lx (base %lx), range %x\n",
|
||||||
|
|
Loading…
Reference in a new issue