[QCAP] Dll Setup Fix

Maarten Lankhorst m.b.lankhorst at gmail.com
Mon May 16 17:31:11 CDT 2005


DllSetup didn't check wether a class had a dll init function or not.

ChangeLog:
Fixed initialisation crash on loading qcap dll
-------------- next part --------------
Index: dllsetup.c
===================================================================
RCS file: /home/wine/wine/dlls/qcap/dllsetup.c,v
retrieving revision 1.1
diff -u -p -r1.1 dllsetup.c
--- dllsetup.c	7 May 2005 18:00:33 -0000	1.1
+++ dllsetup.c	16 May 2005 22:29:35 -0000
@@ -359,6 +359,7 @@ void SetupInitializeServers(const CFacto
 
     for (i = 0; i < num; i++, pList++)
     {
-        pList->m_lpfnInit(bLoading, pList->m_ClsID);
+        if (pList->m_lpfnInit)
+            pList->m_lpfnInit(bLoading, pList->m_ClsID);
     }
 }


More information about the wine-patches mailing list