Commit 9fb58434 authored by Markus Amsler's avatar Markus Amsler Committed by Alexandre Julliard

msvcrt: Speed up new operator.

parent 25b1d672
......@@ -49,8 +49,9 @@ void* CDECL MSVCRT_operator_new(unsigned long size)
{
void *retval = HeapAlloc(GetProcessHeap(), 0, size);
TRACE("(%ld) returning %p\n", size, retval);
if(retval) return retval;
LOCK_HEAP;
if(!retval && MSVCRT_new_handler)
if(MSVCRT_new_handler)
(*MSVCRT_new_handler)(size);
UNLOCK_HEAP;
return retval;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment