mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
Ensure correct full path returned when GetFullPathName supplied a path
relative from the root of the drive 'eg '\windows\system'.
This commit is contained in:
parent
0d8a9fac90
commit
ffb3d784d9
@ -1238,6 +1238,8 @@ static DWORD DOSFS_DoGetFullPathName( LPCSTR name, DWORD len, LPSTR result,
|
||||
|
||||
if (!name[0]) return 0;
|
||||
|
||||
TRACE("passed '%s'\n", name);
|
||||
|
||||
if (name[1]==':')
|
||||
/*drive letter given */
|
||||
{
|
||||
@ -1253,8 +1255,11 @@ static DWORD DOSFS_DoGetFullPathName( LPCSTR name, DWORD len, LPSTR result,
|
||||
{
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user