mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
- Check for more illegal characters in VfatCreateFile.
svn path=/trunk/; revision=5022
This commit is contained in:
parent
b2805cde6e
commit
0efd005774
1 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: create.c,v 1.60 2003/06/26 22:01:02 hbirr Exp $
|
||||
/* $Id: create.c,v 1.61 2003/07/09 19:59:21 hbirr Exp $
|
||||
*
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: services/fs/vfat/create.c
|
||||
|
@ -573,7 +573,9 @@ VfatCreateFile (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
|||
c = FileObject->FileName.Buffer;
|
||||
while (*c != 0)
|
||||
{
|
||||
if (*c == L'*' || *c == L'?' || (*c == L'\\' && c[1] == L'\\'))
|
||||
if (*c == L'*' || *c == L'?' || *c == L'<' || *c == L'>' ||
|
||||
*c == L'/' || *c == L'|' || *c == L':' || *c == L'"' ||
|
||||
(*c == L'\\' && c[1] == L'\\'))
|
||||
{
|
||||
return(STATUS_OBJECT_NAME_INVALID);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue