Commit Graph

10 Commits

Author SHA1 Message Date
Detlef Riekenberg dcbfa1179d kernel: Avoid heap corruption on invalid parameter in GlobalFree(). 2006-03-20 12:26:53 +01:00
Robert Shearman 9cc41d278f kernel32: Fix GlobalReAlloc for size = 0.
GlobalReAlloc should return NULL if the requested size is 0, the block
is moveable and it is locked, but otherwise it should return the
original memory block.
2006-01-12 11:55:25 +01:00
Mike McCormack 3066397bab kernel: Trying to lock an empty global memory block gives an ERROR_DISCARDED. 2006-01-09 17:16:32 +01:00
Saulius Krasuckas 7ff494101a Take into account some alignment done by HeapAlloc() on Win9x. 2005-11-08 16:09:44 +00:00
Robert Shearman 38ba5fe0e0 - Make the value returned from HeapSize always match the requested
size passed into HeapAllocate/HeapReAllocate.
- Add a test for this behaviour.
2005-07-11 13:20:40 +00:00
Jon Griffiths dbf222f3aa Use LMEM_ flags for LocalAlloc(), not GMEM_ (GlobalAlloc). 2005-03-17 20:53:37 +00:00
Francois Gouget afd3c257bd Add trailing '\n's to ok() calls. 2004-02-06 05:24:34 +00:00
Hans Leidekker 9f12d22657 [Global|Local]ReAlloc don't fail with size 0.
Fixed typos.
2003-12-15 19:51:17 +00:00
Dimitrie O. Paun 4c90416d40 More tests for {Local,Global}{,Re}Alloc() calls.
Cleanup of the Heap*() tests.
2003-12-04 21:52:52 +00:00
Dimitrie O. Paun c762f5d7af RtlHeapReAllocate() should not allocate memory.
Add small test to make sure it doesn't return.
Don't import ntdll for tests, we need to load it dynamically.
2003-11-25 01:02:02 +00:00