Re: [Dlls/Cryptnet] Implement a stub cryptnet

2006-06-28 Thread Maarten Lankhorst
2006/6/28, Dmitry Timoshkov <[EMAIL PROTECTED]>: "Maarten Lankhorst" <[EMAIL PROTECTED]> wrote: > +static HINSTANCE ghInst = NULL; > + > +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) > +{ > + TRACE("(0x%p, %ld, %p)\n", hinstDLL, fdwReason, lpvReserved); > + > +

Re: [Dlls/Cryptnet] Implement a stub cryptnet dll (v2)

2006-06-28 Thread Marcus Meissner
On Wed, Jun 28, 2006 at 09:11:21AM +0200, Maarten Lankhorst wrote: > Same as v1, but now even better! :D But without cryptnet_main.c ... Ciao, Marcus

Re: [Dlls/Cryptnet] Implement a stub cryptnet

2006-06-27 Thread Dmitry Timoshkov
+ case DLL_PROCESS_ATTACH: + ghInst = NULL; + break; You meant to make it 'ghInst = hinstDLL;', right? I'd suggest to get rid of ghInst altogether until there is a real need for it. And please add a DisableThreadLibraryCalls( hinstDLL ); call. -- Dmitry.

Re: [Dlls/Cryptnet] Implement a stub cryptnet

2006-06-27 Thread Dmitry Timoshkov
"Maarten Lankhorst" <[EMAIL PROTECTED]> wrote: +static HINSTANCE ghInst = NULL; + +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + TRACE("(0x%p, %ld, %p)\n", hinstDLL, fdwReason, lpvReserved); + + switch (fdwReason) { + case DLL_WINE_PREATTACH: +