kernel32: There is no need for lock/unlock heap in GlobalAlloc.

This commit is contained in:
Dmitry Timoshkov 2013-02-15 16:40:43 +08:00 committed by Alexandre Julliard
parent e069662c0c
commit 70c21c8e6c
1 changed files with 0 additions and 3 deletions

View File

@ -370,8 +370,6 @@ HGLOBAL WINAPI GlobalAlloc(
return 0;
}
RtlLockHeap(GetProcessHeap());
pintern = HeapAlloc(GetProcessHeap(), 0, sizeof(GLOBAL32_INTERN));
if (pintern)
{
@ -400,7 +398,6 @@ HGLOBAL WINAPI GlobalAlloc(
pintern->Pointer = NULL;
}
RtlUnlockHeap(GetProcessHeap());
if (!pintern) return 0;
TRACE( "(flags=%04x) returning handle %p pointer %p\n",
flags, INTERN_TO_HANDLE(pintern), pintern->Pointer );