mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
msvcrt: Speed up new operator.
This commit is contained in:
parent
25b1d67231
commit
9fb58434cb
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue