Fixed list insertion bug in CoLoadLibrary().

This commit is contained in:
Eric Kohl 1998-11-14 18:41:43 +00:00 committed by Alexandre Julliard
parent ab635b211f
commit 999b1b702d
1 changed files with 1 additions and 2 deletions

View File

@ -996,8 +996,7 @@ HINSTANCE32 WINAPI CoLoadLibrary(LPSTR lpszLibName, BOOL32 bAutoFree)
if (!found) {
/* dll not found, add it */
tmp = openDllList;
openDllList->next =
(OpenDll*)HeapAlloc(GetProcessHeap(),0, sizeof(OpenDll));
openDllList = (OpenDll*)HeapAlloc(GetProcessHeap(),0, sizeof(OpenDll));
openDllList->DllName = HEAP_strdupA(GetProcessHeap(), 0, lpszLibName);
openDllList->hLibrary = hLibrary;
openDllList->next = tmp;