iexplore: Avoid a TRUE:FALSE conditional expression.
authorMichael Stefaniuc <mstefani@redhat.de>
Mon, 13 Aug 2012 09:44:06 +0000 (11:44 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 14 Aug 2012 09:59:35 +0000 (11:59 +0200)
dlls/ieframe/iexplore.c

index 00150a4..6c66aef 100644 (file)
@@ -363,7 +363,7 @@ static INT_PTR CALLBACK ie_dialog_open_proc(HWND hwnd, UINT msg, WPARAM wparam,
                     HWND hwndurl = GetDlgItem(hwnd, IDC_BROWSE_OPEN_URL);
                     int len = GetWindowTextLengthW(hwndurl);
 
-                    EnableWindow(GetDlgItem(hwnd, IDOK), len ? TRUE : FALSE);
+                    EnableWindow(GetDlgItem(hwnd, IDOK), len != 0);
                     break;
                 }
                 case IDOK: