dlls/kernel/tests/alloc.c

Jakob Eriksson jakov at vmlinux.org
Wed Dec 29 10:08:45 CST 2004



Windows 98 does return more data than actually requested,
and so does Wine.


http://test.winehq.org/data/200412281000/98/kernel32:alloc.txt



-------------- next part --------------
Index: dlls/kernel/tests/alloc.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/alloc.c,v
retrieving revision 1.11
diff -u -r1.11 alloc.c
--- dlls/kernel/tests/alloc.c	23 Dec 2004 18:48:47 -0000	1.11
+++ dlls/kernel/tests/alloc.c	29 Dec 2004 16:06:45 -0000
@@ -69,16 +69,10 @@
     memchunk=10*sysInfo.dwPageSize;
     heap=HeapCreate(0,2*memchunk,5*memchunk);
 
-/* Check that HeapCreate allocated the right amount of ram */
-    todo_wine {
-    /* Today HeapCreate seems to return a memory block larger than specified.
-       MSDN says the maximum heap size should be dwMaximumSize rounded up to the
-       nearest page boundary
-    */
-      mem1=HeapAlloc(heap,0,5*memchunk+1);
-      ok(mem1==NULL,"HeapCreate allocated more Ram than it should have\n");
-      HeapFree(heap,0,mem1);
-    }
+/* MSDN says the maximum heap size should be dwMaximumSize rounded up to the
+   nearest page boundary. However, testing has shown that at least Win 98
+   does set mem1 something not NULL for this code: HeapAlloc(heap,0,5*memchunk+1);
+*/
 
 /* Check that a normal alloc works */
     mem1=HeapAlloc(heap,0,memchunk);


More information about the wine-patches mailing list