Patch for Wine-20021031 heap allocation on Solaris 8 x86

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently wine exits after complaining about an invalid heap during
startup on Solaris 8 x86.  What happens is mmap is returning an address
above 0xc0000000 which HEAP_InitSubHeap passes to NtAllocateVirtualMemory
who rejects it.  Perhaps someone familar with the code can suggest
a better solution or explain why the ADDRESS_SPACE_LIMIT check is there.

ChangeLog:

Tue Nov  5 16:42:07 EST 2002  John Wehle  (john@feith.com)

	* ntdll/virtual.c (NtAllocateVirtualMemory): Don't
	check against ADDRESS_SPACE_LIMIT.

Enjoy!

-- John Wehle
------------------8<------------------------8<------------------------
--- dlls/ntdll/virtual.c.ORIGINAL	Tue Nov  5 15:31:06 2002
+++ dlls/ntdll/virtual.c	Tue Nov  5 15:30:35 2002
@@ -982,8 +982,7 @@ NTSTATUS WINAPI NtAllocateVirtualMemory(
 
         /* disallow low 64k, wrap-around and kernel space */
         if (((char *)base <= (char *)granularity_mask) ||
-            ((char *)base + size < (char *)base) ||
-            ((char *)base + size > (char *)ADDRESS_SPACE_LIMIT))
+            ((char *)base + size < (char *)base))
             return STATUS_INVALID_PARAMETER;
     }
     else
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux