win-pvdrivers

changeset 540:0828c553c6c3

Fixed an off-by-one error in the load group order correction code
author James Harper <james.harper@bendigoit.com.au>
date Wed Mar 04 13:39:13 2009 +1100 (2009-03-04)
parents 9ed05604c105
children 7359efee2d6f
files xenpci/xenpci.c
line diff
     1.1 --- a/xenpci/xenpci.c	Tue Mar 03 22:00:41 2009 +1100
     1.2 +++ b/xenpci/xenpci.c	Wed Mar 04 13:39:13 2009 +1100
     1.3 @@ -301,7 +301,7 @@ XenPci_FixLoadOrder()
     1.4        WdfCollectionAdd(new_load_order, tmp_wdf_string);
     1.5        WdfObjectDelete(tmp_wdf_string);
     1.6      }
     1.7 -    if (i == 2 && wdf_load_group_index != -1)
     1.8 +    if (i == 1 && wdf_load_group_index != -1)
     1.9      {
    1.10        WDFSTRING tmp_wdf_string;
    1.11        WdfStringCreate(&wdf_load_group_name, WDF_NO_OBJECT_ATTRIBUTES, &tmp_wdf_string);