'SectorSize' can be really weird but we do not use it anyway
authorshort <>
Mon, 14 Apr 2003 00:31:08 +0000 (00:31 +0000)
committershort <>
Mon, 14 Apr 2003 00:31:08 +0000 (00:31 +0000)
src/libcaptive/cc/map.c

index 9ca196f..72a7b17 100644 (file)
@@ -383,6 +383,7 @@ GPtrArray *read_array;
 
        g_return_val_if_fail(FileObject->SectionObjectPointers!=NULL,FALSE);
        g_return_val_if_fail(FileObject->DeviceObject!=NULL,FALSE);
+#if 0  /* SectorSize can be really weird but we do not use it anyway */
        /* Is PAGE_SIZE aligned with 'FileObject->DeviceObject->SectorSize'?
         * 'SectorSize' may not yet be initialized during mount operation
         * and 'FileObject->DeviceObject->Vpb' may exist in such case.
@@ -391,6 +392,7 @@ GPtrArray *read_array;
                                        || FileObject->DeviceObject->SectorSize==0      /* prevent division by 0 */
                                        || 0==CAPTIVE_ROUND_DOWN_EXCEEDING(PAGE_SIZE,FileObject->DeviceObject->SectorSize),
                        FALSE);
+#endif
 
        page_position_hash_init();
        private_bcb_hash_init();