DOSFS_DoGetFullPathName: terminate string weh called like .\\file

oldstable
Uwe Bonnes 2000-05-19 03:37:53 +00:00 committed by Alexandre Julliard
parent 7b217a67f5
commit ed343a2b03
1 changed files with 1 additions and 1 deletions

View File

@ -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 );