Author: hpoussin
Date: Tue May 19 17:01:04 2009
New Revision: 40977
URL:
http://svn.reactos.org/svn/reactos?rev=40977&view=rev
Log:
Skip partitions drive letter assignments if no hard disk is present
Modified:
trunk/reactos/ntoskrnl/fstub/disksup.c
Modified: trunk/reactos/ntoskrnl/fstub/disksup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fstub/disksup.c?r…
==============================================================================
--- trunk/reactos/ntoskrnl/fstub/disksup.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/fstub/disksup.c [iso-8859-1] Tue May 19 17:01:04 2009
@@ -522,6 +522,8 @@
}
/* Initialize layout array */
+ if (ConfigInfo->DiskCount == 0)
+ goto end_assign_disks;
LayoutArray = ExAllocatePool(NonPagedPool,
ConfigInfo->DiskCount * sizeof(PDRIVE_LAYOUT_INFORMATION));
RtlZeroMemory(LayoutArray,
@@ -885,6 +887,7 @@
ExFreePool(LayoutArray[i]);
}
ExFreePool(LayoutArray);
+end_assign_disks:
/* Assign floppy drives */
DPRINT("Floppy drives: %d\n", ConfigInfo->FloppyCount);