Fix another RtlReAllocateHeap call
Dmitry Timoshkov
dmitry at baikal.ru
Wed Nov 26 03:26:44 CST 2003
Hello,
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Fix another RtlReAllocateHeap call.
--- cvs/hq/wine/dlls/ntdll/relay.c Mon Oct 20 13:17:16 2003
+++ wine/dlls/ntdll/relay.c Wed Nov 26 16:46:50 2003
@@ -808,8 +808,13 @@ void SNOOP_SetupDLL(HMODULE hmod)
}
dll = &((*dll)->next);
}
- *dll = RtlReAllocateHeap(ntdll_get_process_heap(),
+ if (*dll)
+ *dll = RtlReAllocateHeap(ntdll_get_process_heap(),
HEAP_ZERO_MEMORY, *dll,
+ sizeof(SNOOP_DLL) + strlen(name));
+ else
+ *dll = RtlAllocateHeap(ntdll_get_process_heap(),
+ HEAP_ZERO_MEMORY,
sizeof(SNOOP_DLL) + strlen(name));
(*dll)->hmod = hmod;
(*dll)->ordbase = exports->Base;
More information about the wine-patches
mailing list