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)
}
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"
......
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