Only display filenames when showing addresses.

This commit is contained in:
Catalin Patulea 2003-07-09 22:01:33 +00:00 committed by Alexandre Julliard
parent 41226dba28
commit 064cce0ea2
1 changed files with 4 additions and 4 deletions

View File

@ -712,10 +712,10 @@ const char * DEBUG_FindNearestSymbol( const DBG_ADDR *addr, int flag,
module = DEBUG_FindModuleByAddr((void*)DEBUG_ToLinear(addr), DMT_UNKNOWN); module = DEBUG_FindModuleByAddr((void*)DEBUG_ToLinear(addr), DMT_UNKNOWN);
if (module) { if (module) {
char* ptr = strrchr(module->module_name, '/'); char *p, *name = module->module_name;
if ((p = strrchr(name, '/'))) name = p + 1;
if (!ptr++) ptr = module->module_name; if ((p = strrchr(name, '\\'))) name = p + 1;
snprintf( modbuf, sizeof(modbuf), " in %s", ptr); snprintf( modbuf, sizeof(modbuf), " in %s", name);
} }
else else
modbuf[0] = '\0'; modbuf[0] = '\0';