[PATCH] wineboot: In ProcessRunKeys use correct parentheses in condition

Fabian Maurer <[email protected]>
Newsgroups gmane.comp.emulators.wine.patches
Message-ID <[email protected]>
Current use of parentheses is suspicious, probably needs to be this way.

Spotted by David Binderman in Bug 43912.

Signed-off-by: Fabian Maurer <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.