Commit a488ee8e authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Fix the base DOS memory address when the low 64K are not accessible.

parent d2c8bfbf
......@@ -170,15 +170,16 @@ BOOL DOSMEM_Init(void)
ExitProcess(1);
}
DOSMEM_dosmem = addr;
if (!addr)
if (addr <= (void *)DOSMEM_64KB)
{
DOSMEM_dosmem = 0;
DOSMEM_protect = DOSMEM_64KB;
sysmem = (char *)0xf0000; /* store sysmem in high addresses for now */
}
else
{
WARN( "First megabyte not available for DOS address space.\n" );
DOSMEM_dosmem = addr;
DOSMEM_protect = 0;
sysmem = DOSMEM_dosmem;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment