winedump: Add DLL_WINE_PREATTACH to the generated DllMain.

This commit is contained in:
Detlef Riekenberg 2006-06-20 23:30:39 +02:00 committed by Alexandre Julliard
parent 52404421ba
commit dbdb8e2ea1

View file

@ -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)