win-pvdrivers

changeset 827:ef7a509365b5

Fix driver load order under W2K
author James Harper <james.harper@bendigoit.com.au>
date Tue Jan 11 21:00:39 2011 +1100 (2011-01-11)
parents 7e39c337e2c3
children 42f72a7b5f1f
files xenpci/xenpci.c
line diff
     1.1 --- a/xenpci/xenpci.c	Tue Jan 11 20:59:52 2011 +1100
     1.2 +++ b/xenpci/xenpci.c	Tue Jan 11 21:00:39 2011 +1100
     1.3 @@ -487,10 +487,10 @@ XenPci_FixLoadOrder()
     1.4      WdfRegistryClose(sgo_key);
     1.5      return; /* something is very wrong */
     1.6    }
     1.7 -  if (dummy_group_index == 1 && (wdf_load_group_index == -1 || 
     1.8 +  if (dummy_group_index == 1 && wdf_load_group_index != -1 &&
     1.9      (dummy_group_index < wdf_load_group_index
    1.10      && wdf_load_group_index < xenpci_group_index
    1.11 -    && xenpci_group_index < boot_bus_extender_index)))
    1.12 +    && xenpci_group_index < boot_bus_extender_index))
    1.13    {
    1.14      FUNCTION_EXIT();
    1.15      return; /* our work here is done */
    1.16 @@ -505,7 +505,7 @@ XenPci_FixLoadOrder()
    1.17        WdfCollectionAdd(new_load_order, tmp_wdf_string);
    1.18        WdfObjectDelete(tmp_wdf_string);
    1.19      }
    1.20 -    if (i == 1 && wdf_load_group_index != -1)
    1.21 +    if (i == 1)
    1.22      {
    1.23        WDFSTRING tmp_wdf_string;
    1.24        WdfStringCreate(&wdf_load_group_name, WDF_NO_OBJECT_ATTRIBUTES, &tmp_wdf_string);