Commit 13ff6e7a authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

setupapi: Correct a return value.

parent 0a5e09d7
...@@ -664,7 +664,8 @@ BOOL WINAPI SetupQueryInfOriginalFileInformationW( ...@@ -664,7 +664,8 @@ BOOL WINAPI SetupQueryInfOriginalFileInformationW(
if (OriginalFileInfo->cbSize != sizeof(*OriginalFileInfo)) if (OriginalFileInfo->cbSize != sizeof(*OriginalFileInfo))
{ {
ERR("incorrect OriginalFileInfo->cbSize of %d\n", OriginalFileInfo->cbSize); ERR("incorrect OriginalFileInfo->cbSize of %d\n", OriginalFileInfo->cbSize);
return ERROR_INVALID_USER_BUFFER; SetLastError(ERROR_INVALID_USER_BUFFER);
return FALSE;
} }
inf_path = (LPWSTR)&InfInformation->VersionData[0]; inf_path = (LPWSTR)&InfInformation->VersionData[0];
......
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