[ros-diffs] [tkreuzer] 48453: [FASTFAT] - Fix a check in VfatCreateFile. Patch by Pierre Schweitzer. See issue #4571 for more details.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Wed Aug 4 13:06:49 UTC 2010


Author: tkreuzer
Date: Wed Aug  4 13:06:47 2010
New Revision: 48453

URL: http://svn.reactos.org/svn/reactos?rev=48453&view=rev
Log:
[FASTFAT]
- Fix a check in VfatCreateFile. Patch by Pierre Schweitzer.

See issue #4571 for more details.

Modified:
    trunk/reactos/drivers/filesystems/fastfat/create.c

Modified: trunk/reactos/drivers/filesystems/fastfat/create.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfat/create.c?rev=48453&r1=48452&r2=48453&view=diff
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] Wed Aug  4 13:06:47 2010
@@ -522,7 +522,7 @@
 			return(STATUS_OBJECT_NAME_INVALID);
 		}
 	}
-        if (FileObject->RelatedFileObject && PathNameU.Length > sizeof(WCHAR) && PathNameU.Buffer[0] == L'\\')
+        if (FileObject->RelatedFileObject && PathNameU.Length >= sizeof(WCHAR) && PathNameU.Buffer[0] == L'\\')
         {
             return(STATUS_OBJECT_NAME_INVALID);
         }




More information about the Ros-diffs mailing list