Commit c4eeb9f6 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

setupapi: SetupOpenInfFile returns INVALID_HANDLE_VALUE on failure, not NULL.

Fix SetupQueryInfOriginalFileInformation to check for the former rather than the latter.
parent 3ceaaae3
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment