MSVCRT: Call handler only when "new" operator fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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;


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux