Module: wine Branch: master Commit: 140bfd2823e0b43ab6a84b0a889e074303b973ab URL: http://source.winehq.org/git/wine.git/?a=commit;h=140bfd2823e0b43ab6a84b0a88...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Wed Dec 19 11:22:29 2012 +0400
winedump: Fix argument format for DllMain trace.
---
tools/winedump/output.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tools/winedump/output.c b/tools/winedump/output.c index 93faca7..fecb885 100644 --- a/tools/winedump/output.c +++ b/tools/winedump/output.c @@ -237,10 +237,10 @@ void output_c_preamble (void) }
fprintf (cfile, - "BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID " - "lpvReserved)\n{\n" - " TRACE("(0x%%p, %%d, %%p)\n", hinstDLL, fdwReason, lpvReserved);\n\n" - " switch (fdwReason)\n" + "BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID " + "reserved)\n{\n" + " TRACE("(%%p, %%u, %%p)\n", instance, reason, reserved);\n\n" + " switch (reason)\n" " {\n" " case DLL_WINE_PREATTACH:\n" " return FALSE; /* prefer native version */\n" @@ -253,7 +253,7 @@ void output_c_preamble (void) globals.forward_dll, globals.forward_dll); else fprintf (cfile, - " DisableThreadLibraryCalls(hinstDLL);\n"); + " DisableThreadLibraryCalls(instance);\n");
fprintf (cfile, " break;\n"