atl80: prefer native, if present

Daniel Jelinski djelinski1 at gmail.com
Sun Jun 17 10:42:33 CDT 2012


-------------- next part --------------
From 7243b3594c9c0b13770ede1ab32d4dd1329b1dd4 Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Sun, 17 Jun 2012 17:37:15 +0200
Subject: atl80: prefer native, if present

---
 dlls/atl80/atl80.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/dlls/atl80/atl80.c b/dlls/atl80/atl80.c
index ab1a5ab..557b9b8 100644
--- a/dlls/atl80/atl80.c
+++ b/dlls/atl80/atl80.c
@@ -24,6 +24,17 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(atl80);
 
+BOOL WINAPI DllMain(HINSTANCE hdll, DWORD reason, LPVOID reserved)
+{
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;  /* prefer native version */
+
+    }
+    return TRUE;
+}
+
 HRESULT WINAPI AtlCreateRegistrar(IRegistrar** ppReg)
 {
     FIXME("(%p) stub\n", ppReg);
-- 
1.7.5.4


More information about the wine-patches mailing list