Commit 9bf93c6e authored by Francis Beaudet's avatar Francis Beaudet Committed by Alexandre Julliard

Added a check for a NULL pointer in CoFreeUnusedLibraries.

parent 12323e4f
......@@ -1583,7 +1583,8 @@ void WINAPI CoFreeUnusedLibraries(void)
DllCanUnloadNow = (DllCanUnloadNowFunc)
GetProcAddress(ptr->hLibrary, "DllCanUnloadNow");
if (DllCanUnloadNow() == S_OK) {
if ( (DllCanUnloadNow != NULL) &&
(DllCanUnloadNow() == S_OK) ) {
tmp=ptr->next;
CoFreeLibrary(ptr->hLibrary);
ptr = tmp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment