msvcrt: Speed up new operator.

This commit is contained in:
Markus Amsler 2006-10-22 04:51:23 +02:00 committed by Alexandre Julliard
parent 25b1d67231
commit 9fb58434cb

View file

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