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:
parent
f04d8a270e
commit
7b485dbf68
|
@ -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] == '?')
|
||||
|
|
Loading…
Reference in New Issue