setupapi: SetupOpenInfFile returns INVALID_HANDLE_VALUE on failure, not NULL.

Fix SetupQueryInfOriginalFileInformation to check for the former rather than the latter.
oldstable
Rob Shearman 2007-05-10 14:25:39 +01:00 committed by Alexandre Julliard
parent 3ceaaae3d7
commit c4eeb9f6fa
1 changed files with 1 additions and 1 deletions

View File

@ -672,7 +672,7 @@ BOOL WINAPI SetupQueryInfOriginalFileInformationW(
* the original inf file and cache it, but that would require building a
* .pnf file. */
hinf = SetupOpenInfFileW(inf_path, NULL, INF_STYLE_WIN4, NULL);
if (!hinf) return FALSE;
if (hinf == INVALID_HANDLE_VALUE) return FALSE;
if (!SetupGetLineTextW(NULL, hinf, wszVersion, wszCatalogFile,
OriginalFileInfo->OriginalCatalogName,