When looking to see whether an incumbent child driver will patch the
PDO names created by the new version of XENVIF, ignore any cases where
we find that the Driver key referenced in the Device key is actually
missing.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Success = OpenDriverKey(DriverKeyName, &DriverKey);
if (!Success)
- goto fail7;
+ goto loop;
Success = GetMatchingDeviceID(DriverKey, &MatchingDeviceID);
if (!Success)
- goto fail8;
+ goto fail7;
Success = SupportDeviceID(MatchingDeviceID);
if (!Success)
- goto fail9;
+ goto fail8;
free(MatchingDeviceID);
RegCloseKey(DriverKey);
- free(DriverKeyName);
-
loop:
+ if (DriverKeyName != NULL)
+ free(DriverKeyName);
+
RegCloseKey(DeviceKey);
}
return TRUE;
-fail9:
- Log("fail9");
-
- free(MatchingDeviceID);
-
fail8:
Log("fail8");
- RegCloseKey(DriverKey);
+ free(MatchingDeviceID);
fail7:
Log("fail7");
+ RegCloseKey(DriverKey);
+
free(DriverKeyName);
fail6: