Fixed list insertion bug in CoLoadLibrary().
This commit is contained in:
parent
ab635b211f
commit
999b1b702d
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue