Detlef Riekenberg : winedump:
Add DLL_WINE_PREATTACH to the generated DllMain.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 21 05:25:12 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: dbdb8e2ea19e58a73b2a9874483f889046bfdce0
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=dbdb8e2ea19e58a73b2a9874483f889046bfdce0
Author: Detlef Riekenberg <wine.dev at web.de>
Date: Tue Jun 20 23:30:39 2006 +0200
winedump: Add DLL_WINE_PREATTACH to the generated DllMain.
---
tools/winedump/output.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/tools/winedump/output.c b/tools/winedump/output.c
index 5a2f4ef..198f7e8 100644
--- a/tools/winedump/output.c
+++ b/tools/winedump/output.c
@@ -231,6 +231,8 @@ void output_c_preamble (void)
"BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID "
"lpvReserved)\n{\n\tTRACE(\"(0x%%p, %%ld, %%p)\\n\",hinstDLL,"
"fdwReason,lpvReserved);\n\n\t"
+ "if (fdwReason == DLL_WINE_PREATTACH) return FALSE;\t"
+ "/* prefer native version */\n\n\t"
"if (fdwReason == DLL_PROCESS_ATTACH)\n\t{\n\t\t");
if (globals.forward_dll)
More information about the wine-cvs
mailing list