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) { if (!found) {
/* dll not found, add it */ /* dll not found, add it */
tmp = openDllList; tmp = openDllList;
openDllList->next = openDllList = (OpenDll*)HeapAlloc(GetProcessHeap(),0, sizeof(OpenDll));
(OpenDll*)HeapAlloc(GetProcessHeap(),0, sizeof(OpenDll));
openDllList->DllName = HEAP_strdupA(GetProcessHeap(), 0, lpszLibName); openDllList->DllName = HEAP_strdupA(GetProcessHeap(), 0, lpszLibName);
openDllList->hLibrary = hLibrary; openDllList->hLibrary = hLibrary;
openDllList->next = tmp; openDllList->next = tmp;