Print module name when calling LibMain in ne_segment.c
Mike Hearn
mh at codeweavers.com
Fri May 28 13:10:47 CDT 2004
Helps in debugging.
Mike Hearn <mh at codeweavers.com>
Print module name when calling LibMain in ne_segment.c
--- dlls/kernel/ne_segment.c
+++ dlls/kernel/ne_segment.c
@@ -694,9 +694,11 @@
context.Ebp = OFFSETOF(NtCurrentTeb()->cur_stack) + (WORD)&((STACK16FRAME*)0)->bp;
pModule->cs = 0; /* Don't initialize it twice */
- TRACE_(dll)("Calling LibMain, cs:ip=%04lx:%04lx ds=%04lx di=%04x cx=%04x\n",
- context.SegCs, context.Eip, context.SegDs,
- LOWORD(context.Edi), LOWORD(context.Ecx) );
+ TRACE_(dll)("Calling LibMain for %.*s, cs:ip=%04lx:%04lx ds=%04lx di=%04x cx=%04x\n",
+ *((BYTE*)pModule + pModule->name_table),
+ (char *)pModule + pModule->name_table + 1,
+ context.SegCs, context.Eip, context.SegDs,
+ LOWORD(context.Edi), LOWORD(context.Ecx) );
WOWCallback16Ex( 0, WCB16_REGS, 0, NULL, (DWORD *)&context );
return TRUE;
}
More information about the wine-patches
mailing list