Displaying 1 result from an estimated 1 matches for "already_map".
2008 Aug 14
1
Complete National Geographic For Windows:DOSMEM_MapDosLayout
...http://source.winehq.org/source/dlls/winedos/dosmem.c?v=wine-1.0#L499
>
> 495 * DOSMEM_MapDosLayout
> 496 *
> 497 * Initialize the first MB of memory to look like a real DOS setup
> 498 */
> 499 BOOL DOSMEM_MapDosLayout(void)
> 500 {
> 501 static int already_mapped;
> 502
> 503 if (!already_mapped)
> 504 {
> 505 HMODULE16 hModule;
> 506 unsigned short sel;
> 507 LDT_ENTRY entry;
> 508
> 509 if (DOSMEM_dosmem || !VirtualProtect( NULL, DOSMEM_SIZE, PAGE_EXECUTE_READWRITE, NULL ))...