wine/dlls/ole32/compobj.c I'm reading through this file and came across this function:
COMPOBJ_DllList_FreeUnused
In particular I noticed this:
DllCanUnloadNow = (DllCanUnloadNowFunc) GetProcAddress(curr->hLibrary, "DllCanUnloadNow");
Every time WINE is checking for DLLs to unload, it's loading the DLL's CanUnloadNow function again. I don't yet know how often this is done, but wouldn't it be better to go ahead and store the DllCanUnloadNow function pointer in the OpenDll struct?
We can do this. I have CC'd this to ask wine-devel why this is done.
Thanks Steven
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com