This hasnt been committed and I havent seen any comments/rejections of it? Resubmitting in case it slipped through a crack. Regards, Jason -----Original Message----- From: Ann and Jason Edmeades [mailto:us@the-edmeades.demon.co.uk] Sent: 25 April 2002 18:09 To: wine patches Subject: GetFullPathName with relative paths I've noticed a small bug when using wcmd, in the changing to a directory, eg c:\windows and doing 'dir \' fails to show the root directory. The problem lies inside the DOSFS_DoGetFullPathName routine. The attached patch resolves the problem. Changelog: - Ensure correct full path returned when GetFullPathName supplied a path relative from the root of the drive 'eg '\windows\system' Regards, Jason jason @ the-edmeades.demon.co.uk Index: dos_fs.c =================================================================== RCS file: /home/wine/wine/files/dos_fs.c,v retrieving revision 1.103 diff -u -u -r1.103 dos_fs.c --- dos_fs.c 2 Apr 2002 02:46:27 -0000 1.103 +++ dos_fs.c 25 Apr 2002 17:09:37 -0000 @@ -1238,6 +1238,8 @@ if (!name[0]) return 0; + TRACE("passed '%s'\n", name); + if (name[1]==':') /*drive letter given */ { @@ -1253,8 +1255,11 @@ { if (driveletter) drivecur[0]=driveletter; - else + else if ((name[0]=='\\') || (name[0]=='/')) { + strcpy(drivecur,"\\"); + } else strcpy(drivecur,"."); + if (!DOSFS_GetFullName( drivecur, FALSE, &full_name )) { FIXME("internal: error getting drive/path\n");
Attachment:
dirroot.patch.2
Description: Binary data