mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-19 03:58:05 -05:00
Fix misplaced parens in window.c.
This was pointed out as a compiler warning when I test-built with up-to-date clang-cl. It looks as if it would cause the IDM_FULLSCREEN item on the system menu to be wrongly greyed/ungreyed, but in fact I think it's benign, because MF_BYCOMMAND == 0. So it's _just_ a warning fix, luckily! (cherry picked from commit 213723a718fdf874418eea734bf1016518830a71)
This commit is contained in:
parent
8453b9239c
commit
14c6ddca63
@ -2369,8 +2369,8 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
|
|||||||
for (i = 0; i < lenof(popup_menus); i++)
|
for (i = 0; i < lenof(popup_menus); i++)
|
||||||
EnableMenuItem(popup_menus[i].menu, IDM_FULLSCREEN,
|
EnableMenuItem(popup_menus[i].menu, IDM_FULLSCREEN,
|
||||||
MF_BYCOMMAND |
|
MF_BYCOMMAND |
|
||||||
(resize_action == RESIZE_DISABLED)
|
(resize_action == RESIZE_DISABLED
|
||||||
? MF_GRAYED : MF_ENABLED);
|
? MF_GRAYED : MF_ENABLED));
|
||||||
/* Gracefully unzoom if necessary */
|
/* Gracefully unzoom if necessary */
|
||||||
if (IsZoomed(hwnd) && (resize_action == RESIZE_DISABLED))
|
if (IsZoomed(hwnd) && (resize_action == RESIZE_DISABLED))
|
||||||
ShowWindow(hwnd, SW_RESTORE);
|
ShowWindow(hwnd, SW_RESTORE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user