regsvr32: Call OleInitialize before registering a DLL

Dmitry Timoshkov dmitry at
Tue Feb 7 13:33:37 CST 2006


this patch fixes a crash in the set of dshow filters I'm playing with at
the moment. Each filter explicitely calls OleInitialize,OleUninitialize,
and then calls CoCreateInstance which returns CO_E_NOTINITIALIZED in
Wine, and after that the filter crashes dereferencing NULL instance
pointer. Apparently CoCreateInstance succeeds under Windows.
regsvr32.exe in my XPSP2 imports both OleInitialize and OleUninitialize,
so it's safe to make an assumption that it calls them.

    regsvr32: Call OleInitialize before registering a DLL, call
    OleUninitialize once finished.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: regsvr32.diff
Type: text/x-patch
Size: 1902 bytes
Desc: not available
Url :

More information about the wine-patches mailing list