kernel32: Deal with unix paths in wine_get_dos_file_name.
This commit is contained in:
parent
2f877b0a79
commit
f56be472c6
|
@ -1788,10 +1788,15 @@ WCHAR * CDECL wine_get_dos_file_name( LPCSTR str )
|
||||||
SetLastError( RtlNtStatusToDosError( status ) );
|
SetLastError( RtlNtStatusToDosError( status ) );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
if (nt_name.Buffer[5] == ':')
|
||||||
|
{
|
||||||
/* get rid of the \??\ prefix */
|
/* get rid of the \??\ prefix */
|
||||||
/* FIXME: should implement RtlNtPathNameToDosPathName and use that instead */
|
/* FIXME: should implement RtlNtPathNameToDosPathName and use that instead */
|
||||||
len = nt_name.Length - 4 * sizeof(WCHAR);
|
len = nt_name.Length - 4 * sizeof(WCHAR);
|
||||||
memmove( nt_name.Buffer, nt_name.Buffer + 4, len );
|
memmove( nt_name.Buffer, nt_name.Buffer + 4, len );
|
||||||
nt_name.Buffer[len / sizeof(WCHAR)] = 0;
|
nt_name.Buffer[len / sizeof(WCHAR)] = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
nt_name.Buffer[1] = '\\';
|
||||||
return nt_name.Buffer;
|
return nt_name.Buffer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue