[PATCH] user32: Avoid using the comma operator in a while condition.
Huw Davies
huw at codeweavers.com
Wed Apr 4 13:32:15 CDT 2018
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
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 7d1f6b3de7..6f23c74309 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
--
2.16.2
More information about the wine-devel
mailing list