Commit 7b485dbf authored by Owen Rudge's avatar Owen Rudge Committed by Alexandre Julliard

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: 's avatarOwen Rudge <orudge@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent f04d8a27
...@@ -189,7 +189,7 @@ ProcessCmdLine(LPSTR lpCmdLine) ...@@ -189,7 +189,7 @@ ProcessCmdLine(LPSTR lpCmdLine)
} }
if ((lpCmdLine[1] == 'V' || lpCmdLine[1] == 'v') && (lstrlenA(lpCmdLine) > 4)) 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] == '?') if (lpCmdLine[1] == '?')
......
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