mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
MSVCRT_operator_new: Call handler only when "new" operation fails.
This commit is contained in:
parent
1cef2974ab
commit
d389c4bad4
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ void* MSVCRT_operator_new(unsigned long size)
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue