DOSFS_ToDosFCBFormat: fail if extension longer than 3 characters.
This commit is contained in:
parent
e61d33bfd1
commit
7cc51fae64
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue