setupapi: Correct a return value.

This commit is contained in:
Juan Lang 2007-11-05 09:57:04 -08:00 committed by Alexandre Julliard
parent 0a5e09d794
commit 13ff6e7a1b
1 changed files with 2 additions and 1 deletions

View File

@ -664,7 +664,8 @@ BOOL WINAPI SetupQueryInfOriginalFileInformationW(
if (OriginalFileInfo->cbSize != sizeof(*OriginalFileInfo))
{
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];