Skip to content
Snippets Groups Projects
Commit cd841a4a authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard
Browse files

Fixed crash when map fails.

parent 92f376f7
No related branches found
No related tags found
No related merge requests found
......@@ -603,6 +603,11 @@ HMODULE PE_LoadImage( HANDLE hFile, LPCSTR filename, WORD *version )
load_addr = (DWORD)VirtualAlloc( NULL, vma_size,
MEM_RESERVE | MEM_COMMIT,
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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment