winecfg: Return 0 on success when setting Windows version.

The /V switch to winecfg was incorrectly passing the BOOL result through
as the application exit code.

Signed-off-by: Owen Rudge <orudge@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Owen Rudge 2020-04-20 12:53:54 +01:00 committed by Alexandre Julliard
parent f04d8a270e
commit 7b485dbf68
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ ProcessCmdLine(LPSTR lpCmdLine)
}
if ((lpCmdLine[1] == 'V' || lpCmdLine[1] == 'v') && (lstrlenA(lpCmdLine) > 4))
{
return set_winver_from_string(&lpCmdLine[3]);
return set_winver_from_string(&lpCmdLine[3]) ? 0 : 1;
}
if (lpCmdLine[1] == '?')