DOSFS_ToDosFCBFormat: fail if extension longer than 3 characters.

This commit is contained in:
Stefan Leichter 2000-03-26 20:25:59 +00:00 committed by Alexandre Julliard
parent e61d33bfd1
commit 7cc51fae64
1 changed files with 6 additions and 1 deletions

View File

@ -240,7 +240,12 @@ BOOL DOSFS_ToDosFCBFormat( LPCSTR name, LPSTR buffer )
}
}
buffer[11] = '\0';
return TRUE;
/* at most 3 character of the extension are processed
* is something behind this ?
*/
if (*p == '*') p++; /* skip wildcard */
return IS_END_OF_NAME(*p);
}