>
> [EMAIL PROTECTED] wrote:
>
> > I tryed to compile a programm against winelib and noticed the common
> > controls are not registered because the dllmain functions are never called.
> > The module trace shows the builtin comctl32 gets loaded.
> >
> > Did it broke with the last winelib updates?
>
> It shouldn't have ...
>
> Does the program in question use LoadLibrary? With the new WineLib,
> you can now also try implicit loading by specifying imports in the
> app's .spec file.
>
Yes, I used it. I noticed, everything what gets loaded in pe_image at line 301
(MODULE_LoadLibraryEx) dosn't get any DLL_ATTACH calls.
Dll's getting loaded in MAIN_WinelibInit with LoadLibrary receiving the call.
To fix this I put after the
... LoadLibrary("USER32.DLL"))
ExitProcess(1);
----- start ---
/* call DLLProcessAttach for all other loaded dll's */
EnterCriticalSection()
PE_InitTls()
Module_DllProcessAttach(PROCESS_Current()->exe_modref, ...);
LeaveCriticalSection()
---- end ---
THUNK_InitCallout();
Is this the correct fix - it works nicely?
juergen
---
[EMAIL PROTECTED]
... from sunny Berlin