Author: greatlrd
Date: Thu Apr 27 22:27:55 2006
New Revision: 21746
URL:
http://svn.reactos.ru/svn/reactos?rev=21746&view=rev
Log:
vfatDirFindFile : Fix a hidden bug in vfat driver do not crash cc manger if no file found
Modified:
branches/cache_manager_rewrite/reactos/drivers/filesystems/vfat/fcb.c
Modified: branches/cache_manager_rewrite/reactos/drivers/filesystems/vfat/fcb.c
URL:
http://svn.reactos.ru/svn/reactos/branches/cache_manager_rewrite/reactos/dr…
==============================================================================
--- branches/cache_manager_rewrite/reactos/drivers/filesystems/vfat/fcb.c (original)
+++ branches/cache_manager_rewrite/reactos/drivers/filesystems/vfat/fcb.c Thu Apr 27
22:27:55 2006
@@ -605,6 +605,13 @@
while (TRUE)
{
+ DPRINT ("loop : vfatDirFindFile(File:%wZ)\n", FileToFindU);
+ DPRINT ("loop : Dir Path:%wZ\n", &pDirectoryFCB->PathNameU);
+
+ if (pDirectoryFCB->FileObject == NULL)
+ {
+ return STATUS_OBJECT_NAME_NOT_FOUND;
+ }
status = pDeviceExt->GetNextDirEntry(&Context,
&Page,
pDirectoryFCB,