Huw Davies : user32: Avoid using the comma operator in a while condition.
Alexandre Julliard
julliard at winehq.org
Wed Apr 4 15:08:08 CDT 2018
Module: wine
Branch: master
Commit: da943f2c089a0dd32fb727ed1d09e7e00680c6ff
URL: https://source.winehq.org/git/wine.git/?a=commit;h=da943f2c089a0dd32fb727ed1d09e7e00680c6ff
Author: Huw Davies <huw at codeweavers.com>
Date: Wed Apr 4 19:32:15 2018 +0100
user32: Avoid using the comma operator in a while condition.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/dialog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/dialog.c b/dlls/user32/dialog.c
index 7d1f6b3..6f23c74 100644
--- a/dlls/user32/dialog.c
+++ b/dlls/user32/dialog.c
@@ -1582,9 +1582,9 @@ HWND WINAPI GetNextDlgGroupItem( HWND hwndDlg, HWND hwndCtrl, BOOL fPrevious )
*/
retvalue = hwndCtrl;
hwnd = hwndCtrl;
- while (hwndNext = GetWindow (hwnd, GW_HWNDNEXT),
- 1)
+ while (1)
{
+ hwndNext = GetWindow (hwnd, GW_HWNDNEXT);
while (!hwndNext)
{
/* Climb out until there is a next sibling of the ancestor or we
More information about the wine-cvs
mailing list