Re: ole32: Forward BSTR functions to oleaut32
Jacek Caban <jacek(a)codeweavers.com> writes:
@@ -1244,6 +1244,9 @@ static void COMPOBJ_InitProcess( void ) static void COMPOBJ_UninitProcess( void ) { UnregisterClassW(wszAptWinClass, hProxyDll); + + if(oleaut32_instance) + FreeLibrary(oleaut32_instance);
Since oleaut32 imports ole32 you'll never get here. Using a delayed import would probably be easier. -- Alexandre Julliard julliard(a)winehq.org
On 07/18/12 15:00, Alexandre Julliard wrote:
Jacek Caban <jacek(a)codeweavers.com> writes:
@@ -1244,6 +1244,9 @@ static void COMPOBJ_InitProcess( void ) static void COMPOBJ_UninitProcess( void ) { UnregisterClassW(wszAptWinClass, hProxyDll); + + if(oleaut32_instance) + FreeLibrary(oleaut32_instance); Since oleaut32 imports ole32 you'll never get here.
Oh, right, that was stupid.
Using a delayed import would probably be easier.
That was my first idea, but I realized that in this case we may easily end up using oleaut32 in ole32 by accident in places that shouldn't do so. Jacek
participants (2)
-
Alexandre Julliard -
Jacek Caban