Author: jgardou
Date: Tue Feb 21 22:08:24 2012
New Revision: 55797
URL:
http://svn.reactos.org/svn/reactos?rev=55797&view=rev
Log:
[CRT]
- C standard for free says "if pointer is NULL, no action is taken".
- MSDN for HeapFree says "if pointer is NULL, behavior is undefined".
Thanks to Thomas for teaching wine guys how to read.
Modified:
trunk/reactos/lib/sdk/crt/wine/heap.c
Modified: trunk/reactos/lib/sdk/crt/wine/heap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/wine/heap.c?re…
==============================================================================
--- trunk/reactos/lib/sdk/crt/wine/heap.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/wine/heap.c [iso-8859-1] Tue Feb 21 22:08:24 2012
@@ -298,6 +298,7 @@
*/
void CDECL free(void* ptr)
{
+ if(ptr == NULL) return;
HeapFree(GetProcessHeap(),0,ptr);
}