Author: pschweitzer
Date: Sat Jun 3 19:56:50 2017
New Revision: 74801
URL:
http://svn.reactos.org/svn/reactos?rev=74801&view=rev
Log:
[UDFS]
Fix broken code when UDF_DBG isn't set
CORE-4375
Modified:
trunk/reactos/drivers/filesystems/udfs/udf_info/extent.cpp
trunk/reactos/drivers/filesystems/udfs/udf_info/udf_info.cpp
Modified: trunk/reactos/drivers/filesystems/udfs/udf_info/extent.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/udfs/u…
==============================================================================
--- trunk/reactos/drivers/filesystems/udfs/udf_info/extent.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/udfs/udf_info/extent.cpp [iso-8859-1] Sat Jun 3
19:56:50 2017
@@ -1860,7 +1860,9 @@
UDFPackMapping(Vcb, ExtInfo);
}
AdPrint(("Alloc->Rec (1) new %x\n", ExtInfo->Mapping));
+#ifdef UDF_DBG
ASSERT(check_size == UDFGetExtentLength(ExtInfo->Mapping));
+#endif
AdPrint(("Alloc->Rec: ExtInfo %x, Extent %x\n", ExtInfo,
ExtInfo->Mapping));
return STATUS_SUCCESS;
}
@@ -1928,8 +1930,10 @@
ExtInfo->Mapping = NewExtent;
if(TryPack)
UDFPackMapping(Vcb, ExtInfo);
+#ifdef UDF_DBG
ASSERT(check_size == UDFGetExtentLength(ExtInfo->Mapping));
ASSERT(!(check_size & (LBS-1)));
+#endif
AdPrint(("Alloc->Rec: ExtInfo %x, Extent %x\n", ExtInfo,
ExtInfo->Mapping));
@@ -2828,8 +2832,10 @@
NewMap[j].extLength =
NewMap[j].extLocation = 0;
+#ifdef UDF_DBG
ASSERT(check_size == UDFGetExtentLength(ExtInfo->Mapping));
ASSERT(check_size == UDFGetExtentLength(NewMap));
+#endif
AdPrint(("Pack ExtInfo %x, NewMap %x, OldMap %x\n", ExtInfo, NewMap,
OldMap));
Modified: trunk/reactos/drivers/filesystems/udfs/udf_info/udf_info.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/udfs/u…
==============================================================================
--- trunk/reactos/drivers/filesystems/udfs/udf_info/udf_info.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/udfs/udf_info/udf_info.cpp [iso-8859-1] Sat Jun 3
19:56:50 2017
@@ -2419,7 +2419,9 @@
if(!KeepDloc) {
+#ifdef UDF_DBG
ASSERT(!Modified);
+#endif
#ifndef UDF_TRACK_ONDISK_ALLOCATION
if(Dloc->DataLoc.Mapping) MyFreePool__(Dloc->DataLoc.Mapping);