Louis Lenders : d3dx8: Add DllMain.

Alexandre Julliard julliard at winehq.org
Thu Oct 4 06:21:21 CDT 2007


Module: wine
Branch: master
Commit: 547d4067192e593664c9314b073c6bac3d75aa24
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=547d4067192e593664c9314b073c6bac3d75aa24

Author: Louis Lenders <xerox_xerox2000 at yahoo.co.uk>
Date:   Thu Oct  4 08:50:36 2007 +0100

d3dx8: Add DllMain.

---

 dlls/d3dx8/d3dx8_main.c |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/dlls/d3dx8/d3dx8_main.c b/dlls/d3dx8/d3dx8_main.c
index 958ef9b..9221221 100644
--- a/dlls/d3dx8/d3dx8_main.c
+++ b/dlls/d3dx8/d3dx8_main.c
@@ -90,3 +90,21 @@ HRESULT WINAPI D3DXAssembleShaderFromFileW(LPSTR pSrcFile, DWORD Flags,
   FIXME("(void): stub\n");
   return D3D_OK;
 }
+
+/***********************************************************************
+ * DllMain.
+ */
+BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
+{
+    switch(reason)
+    {
+    case DLL_WINE_PREATTACH:
+        return FALSE; /* prefer native version */
+    case DLL_PROCESS_ATTACH:
+        DisableThreadLibraryCalls(inst);
+        break;
+    case DLL_PROCESS_DETACH:
+        break;
+    }
+    return TRUE;
+}




More information about the wine-cvs mailing list