MSVCRT: Call handler only when "new" operator fails
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Thu Jul 4 14:15:06 CDT 2002
Changelog:
dlls/msvcrt/heap.c: MSVCRT_operator_new
Call handler only when "new" opearation fails
This makes Xilinx Webpack proceed with builtin MSVCRT
Bye
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Free Software: If you contribute nothing, expect nothing
--
Index: wine/dlls/msvcrt/heap.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/heap.c,v
retrieving revision 1.10
diff -u -r1.10 heap.c
--- wine/dlls/msvcrt/heap.c 9 Mar 2002 23:39:08 -0000 1.10
+++ wine/dlls/msvcrt/heap.c 4 Jul 2002 19:11:11 -0000
@@ -50,7 +50,7 @@
void *retval = HeapAlloc(GetProcessHeap(), 0, size);
TRACE("(%ld) returning %p\n", size, retval);
LOCK_HEAP;
- if(retval && MSVCRT_new_handler)
+ if(!retval && MSVCRT_new_handler)
(*MSVCRT_new_handler)(size);
UNLOCK_HEAP;
return retval;
More information about the wine-patches
mailing list