--- trunk/reactos/lib/msimg32/msimg32.spec 2005-02-12 21:26:15 UTC (rev 13516)
+++ trunk/reactos/lib/msimg32/msimg32.spec 2005-02-12 21:46:45 UTC (rev 13517)
@@ -1,5 +1,5 @@
@ stdcall AlphaBlend(long long long long long long long long long long long) gdi32.GdiAlphaBlend
-@ stub DllInitialize
+@ stdcall DllInitialize(long long ptr) DllMain
@ stdcall GradientFill(long ptr long ptr long long) gdi32.GdiGradientFill
@ stdcall TransparentBlt(long long long long long long long long long long long) gdi32.GdiTransparentBlt
@ stdcall vSetDdrawflag()
--- trunk/reactos/lib/msimg32/msimg32_main.c 2005-02-12 21:26:15 UTC (rev 13516)
+++ trunk/reactos/lib/msimg32/msimg32_main.c 2005-02-12 21:46:45 UTC (rev 13517)
@@ -26,6 +26,18 @@
WINE_DEFAULT_DEBUG_CHANNEL(msimg32);
+/***********************************************************************
+ * DllInitialize (MSIMG32.@)
+ *
+ * MSIMG32 initialisation routine.
+ */
+BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
+{
+ if (reason == DLL_PROCESS_ATTACH) DisableThreadLibraryCalls( inst );
+ return TRUE;
+}
+
+
/******************************************************************************
* vSetDdrawflag (MSIMG32.@)
*/