Ignore the large address space flag when version is win9x.

This commit is contained in:
Alexandre Julliard 2005-12-01 18:42:39 +01:00
parent 7fbf3420bf
commit e3ef6314fd
1 changed files with 3 additions and 0 deletions

View File

@ -1226,6 +1226,9 @@ BOOL VIRTUAL_HasMapping( LPCVOID addr )
void VIRTUAL_UseLargeAddressSpace(void)
{
if (user_space_limit >= ADDRESS_SPACE_LIMIT) return;
/* no large address space on win9x */
if (NtCurrentTeb()->Peb->OSPlatformId != VER_PLATFORM_WIN32_NT) return;
RtlEnterCriticalSection( &csVirtual );
remove_reserved_area( user_space_limit, (char *)ADDRESS_SPACE_LIMIT - (char *)user_space_limit );
user_space_limit = ADDRESS_SPACE_LIMIT;