CVS: winex/dlls/ntdll heap.c,1.11,1.12

[email protected]
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/dlls/ntdll heap.c,1.11,1.12Update of /var/lib/cvsd/cvsroot/winex/dlls/ntdll
In directory agravaine:/tmp/cvs-serv13792/dlls/ntdll

Modified Files:
	heap.c 
Log Message:

- respect our internal HEAP_CREATE_ALIGN_16 flag with the new allocator


Index: heap.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/ntdll/heap.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- heap.c	30 Mar 2007 18:59:57 -0000	1.11
+++ heap.c	30 Mar 2007 20:11:32 -0000	1.12
@@ -208,7 +208,11 @@
    if (!(flags & HEAP_NO_SERIALIZE))
        RtlEnterCriticalSection (&pHeap->CS);
 
-   pMem = mspace_malloc (pHeap->MSpace, size);
+   if (flags & HEAP_CREATE_ALIGN_16)
+      pMem = mspace_memalign (pHeap->MSpace, 16, size);
+   else
+      pMem = mspace_malloc (pHeap->MSpace, size);
+
    if (pMem)
       ChunkSize = mspace_usable_size (pMem);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.