Commit 140bfd28 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

winedump: Fix argument format for DllMain trace.

parent f3f81387
...@@ -237,10 +237,10 @@ void output_c_preamble (void) ...@@ -237,10 +237,10 @@ void output_c_preamble (void)
} }
fprintf (cfile, fprintf (cfile,
"BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID " "BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID "
"lpvReserved)\n{\n" "reserved)\n{\n"
" TRACE(\"(0x%%p, %%d, %%p)\\n\", hinstDLL, fdwReason, lpvReserved);\n\n" " TRACE(\"(%%p, %%u, %%p)\\n\", instance, reason, reserved);\n\n"
" switch (fdwReason)\n" " switch (reason)\n"
" {\n" " {\n"
" case DLL_WINE_PREATTACH:\n" " case DLL_WINE_PREATTACH:\n"
" return FALSE; /* prefer native version */\n" " return FALSE; /* prefer native version */\n"
...@@ -253,7 +253,7 @@ void output_c_preamble (void) ...@@ -253,7 +253,7 @@ void output_c_preamble (void)
globals.forward_dll, globals.forward_dll); globals.forward_dll, globals.forward_dll);
else else
fprintf (cfile, fprintf (cfile,
" DisableThreadLibraryCalls(hinstDLL);\n"); " DisableThreadLibraryCalls(instance);\n");
fprintf (cfile, fprintf (cfile,
" break;\n" " break;\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment