kernel32: There is no need for lock/unlock heap in GlobalAlloc.
Dmitry Timoshkov
dmitry at baikal.ru
Fri Feb 15 02:40:43 CST 2013
---
dlls/kernel32/heap.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/dlls/kernel32/heap.c b/dlls/kernel32/heap.c
index b74763f..e0b86e5 100644
--- a/dlls/kernel32/heap.c
+++ b/dlls/kernel32/heap.c
@@ -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 );
--
1.8.1.3
More information about the wine-patches
mailing list