Fixed potential zero pointer reference.

svn path=/trunk/; revision=2843
This commit is contained in:
Eugene Ingerman 2002-04-12 17:54:07 +00:00
parent c423031b39
commit 531d8f275d

View file

@ -1,4 +1,4 @@
/* $Id: xhaldrv.c,v 1.17 2002/03/21 19:35:58 ekohl Exp $
/* $Id: xhaldrv.c,v 1.18 2002/04/12 17:54:07 ei Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -516,6 +516,7 @@ xHalIoAssignDriveLetters(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
DPRINT("Assigning extended (logical) partitions:\n");
for (i = 0; i < ConfigInfo->DiskCount; i++)
{
if( LayoutArray[i] ){
/* search for extended partitions */
for (j = PARTITION_TBL_SIZE; j < LayoutArray[i]->PartitionCount; j++)
{
@ -538,6 +539,7 @@ xHalIoAssignDriveLetters(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
}
}
}
}
/* Free layout array */
for (i = 0; i < ConfigInfo->DiskCount; i++)