Author: pschweitzer
Date: Tue Oct 28 20:39:42 2014
New Revision: 65085

URL: http://svn.reactos.org/svn/reactos?rev=65085&view=rev
Log:
[FASTFAT]
For now, disable the VfatSetRenameInformation() asserts in trunk.
They can be reenabled for testing by commenting "#define NASSERTS_RENAME" out.

CORE-8721 #resolve #comment Fixed with r65085

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

Modified: trunk/reactos/drivers/filesystems/fastfat/finfo.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfat/finfo.c?rev=65085&r1=65084&r2=65085&view=diff
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/finfo.c   [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/finfo.c   [iso-8859-1] Tue Oct 28 
20:39:42 2014
@@ -15,6 +15,8 @@
 
 #define NDEBUG
 #include <debug.h>
+
+#define NASSERTS_RENAME
 
 /* GLOBALS ******************************************************************/
 
@@ -459,6 +461,11 @@
     PFILE_RENAME_INFORMATION RenameInfo,
     PFILE_OBJECT TargetFileObject)
 {
+#ifdef NASSERTS_RENAME
+#pragma push_macro("ASSERT")
+#undef ASSERT
+#define ASSERT(x) ((VOID) 0)
+#endif
     NTSTATUS Status;
     UNICODE_STRING NewName;
     UNICODE_STRING SourcePath;
@@ -485,6 +492,9 @@
     }
 
     OldReferences = FCB->parentFcb->RefCount;
+#ifdef NASSERTS_RENAME
+    UNREFERENCED_PARAMETER(OldReferences);
+#endif
 
     /* If we are performing relative opening for rename, get FO for getting 
FCB and path name */
     if (RenameInfo->RootDirectory != NULL)
@@ -790,6 +800,9 @@
         /* Try to find target */
         ParentFCB = NULL;
         OldParent = FCB->parentFcb;
+#ifdef NASSERTS_RENAME
+        UNREFERENCED_PARAMETER(OldParent);
+#endif
         Status = vfatPrepareTargetForRename(DeviceExt,
                                             &ParentFCB,
                                             &NewName,
@@ -803,6 +816,9 @@
         }
 
         NewReferences = ParentFCB->RefCount;
+#ifdef NASSERTS_RENAME
+        UNREFERENCED_PARAMETER(NewReferences);
+#endif
 
         FsRtlNotifyFullReportChange(DeviceExt->NotifySync,
                                     &(DeviceExt->NotifyList),
@@ -854,6 +870,9 @@
     if (RenameInfo->RootDirectory != NULL) ObDereferenceObject(RootFileObject);
 
     return Status;
+#ifdef NASSERTS_RENAME
+#pragma pop_macro("ASSERT")
+#endif
 }
 
 /*


Reply via email to