forked from Mirrors/wine-wine
DOSFS_DoGetFullPathName: terminate string weh called like .\\file
parent
7b217a67f5
commit
ed343a2b03
|
@ -1177,7 +1177,7 @@ static DWORD DOSFS_DoGetFullPathName( LPCSTR name, DWORD len, LPSTR result,
|
||||||
while ((p = strstr(full_name.short_name,"\\.\\")))
|
while ((p = strstr(full_name.short_name,"\\.\\")))
|
||||||
{
|
{
|
||||||
*(p+1) = 0;
|
*(p+1) = 0;
|
||||||
memmove(p+1,p+3,strlen(p+3));
|
memmove(p+1,p+3,strlen(p+3)+1);
|
||||||
}
|
}
|
||||||
if (!(DRIVE_GetFlags(drive) & DRIVE_CASE_PRESERVING))
|
if (!(DRIVE_GetFlags(drive) & DRIVE_CASE_PRESERVING))
|
||||||
CharUpperA( full_name.short_name );
|
CharUpperA( full_name.short_name );
|
||||||
|
|
Loading…
Reference in New Issue