setupapi: SetupOpenInfFile returns INVALID_HANDLE_VALUE on failure, not NULL.
Fix SetupQueryInfOriginalFileInformation to check for the former rather than the latter.
This commit is contained in:
parent
3ceaaae3d7
commit
c4eeb9f6fa
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue