Author: akhaldi Date: Sat Jan 14 15:47:59 2012 New Revision: 54958
URL: http://svn.reactos.org/svn/reactos?rev=54958&view=rev Log: [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.
Modified: trunk/reactos/dll/win32/setupapi/driver.c
Modified: trunk/reactos/dll/win32/setupapi/driver.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/driver.c... ============================================================================== --- trunk/reactos/dll/win32/setupapi/driver.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/setupapi/driver.c [iso-8859-1] Sat Jan 14 15:47:59 2012 @@ -390,8 +390,13 @@ 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, ',');