From 654ebc6892c242fe12ad7b882bf6ef207c1f53f3 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 14 Jan 2012 15:47:59 +0000 Subject: [PATCH] [SETUPAPI] * Apply a default date of 00/00/0000 when DriverVer is missing. Should fix installation of drivers which do not provide a DriverVer directive. See issue #6676 for more details. svn path=/trunk/; revision=54958 --- reactos/dll/win32/setupapi/driver.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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, ',');