Fix another RtlReAllocateHeap call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Changelog:
    Dmitry Timoshkov <dmitry@xxxxxxxxxxxxxxx>
    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;





[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux