[PATCH] wineboot: In ProcessRunKeys use correct parentheses in condition
Fabian Maurer
dark.shadow4 at web.de
Tue Oct 24 13:05:52 CDT 2017
Current use of parentheses is suspicious, probably needs to be this way.
Spotted by David Binderman in Bug 43912.
Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
programs/wineboot/wineboot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c
index ee5b8d4408..2a65b9e8b3 100644
--- a/programs/wineboot/wineboot.c
+++ b/programs/wineboot/wineboot.c
@@ -682,7 +682,7 @@ static BOOL ProcessRunKeys( HKEY hkRoot, LPCWSTR szKeyName, BOOL bDelete,
return TRUE;
if ((res = RegCreateKeyExW( hkWin, szKeyName, 0, NULL, 0, bDelete ? KEY_ALL_ACCESS : KEY_READ,
- NULL, &hkRun, &dispos ) != ERROR_SUCCESS))
+ NULL, &hkRun, &dispos )) != ERROR_SUCCESS)
{
RegCloseKey( hkWin );
return TRUE;
--
2.14.3
More information about the wine-patches
mailing list