Patch for bud ID 1550 (patch now attached)

Catalin Patulea catalins at vv.carleton.ca
Fri Jun 27 22:03:11 CDT 2003


(Sorry, my previous message didn't have the patch attached.)

This patch makes winedbg display only the filename when it shows 
addresses, instead of erroneously showing the full path. The problem 
relied in the use of strrchr() with a Unix-style forward-slash (/) instead 
of a Win32-style backslash.

ChangeLog:
* winedbg now only displays filenames when showing addresses

-------------------------------------------
Catalin Patulea           VV Volunteer 2002
http://vv.carleton.ca/~catalins/
catalins at vv.carleton.ca
                                 VV Rocks!!
-------------- next part --------------
Index: wine/programs/winedbg/hash.c
===================================================================
RCS file: /home/wine/wine/programs/winedbg/hash.c,v
retrieving revision 1.7
diff -u -r1.7 hash.c
--- wine/programs/winedbg/hash.c	19 Feb 2003 03:41:48 -0000	1.7
+++ wine/programs/winedbg/hash.c	28 Jun 2003 02:09:59 -0000
@@ -712,7 +712,8 @@
 
     module = DEBUG_FindModuleByAddr((void*)DEBUG_ToLinear(addr), DMT_UNKNOWN);
     if (module) {
-       char*	ptr = strrchr(module->module_name, '/');
+       char*	ptr = strrchr(module->module_name, (module->module_name[1] == ':') ? '\\' : '/');
 
        if (!ptr++) ptr = module->module_name;
        snprintf( modbuf, sizeof(modbuf), " in %s", ptr);


More information about the wine-patches mailing list