diff --git a/reactos/dll/win32/setupapi/driver.c b/reactos/dll/win32/setupapi/driver.c index 9b65943f8d4..0e14f03942e 100644 --- a/reactos/dll/win32/setupapi/driver.c +++ b/reactos/dll/win32/setupapi/driver.c @@ -390,8 +390,13 @@ GetVersionInformationFromInfFile( DriverVer, RequiredSize, &RequiredSize); } - if (!Result) - goto cleanup; + else + { + /* windows sets default date of 00/00/0000 when this directive is missing*/ + memset(DriverDate, 0, sizeof(FILETIME)); + *DriverVersion = 0; + return TRUE; + } /* Get driver date and driver version, by analyzing the "DriverVer" value */ pComma = strchrW(DriverVer, ',');