DOSFS_DoGetFullPathName: terminate string weh called like .\\file
This commit is contained in:
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,"\\.\\")))
|
||||
{
|
||||
*(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))
|
||||
CharUpperA( full_name.short_name );
|
||||
|
|
Loading…
Reference in New Issue