зеркало из https://github.com/github/putty.git
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 213723a718
)
This commit is contained in:
Родитель
8453b9239c
Коммит
14c6ddca63
|
@ -2369,8 +2369,8 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
|
|||
for (i = 0; i < lenof(popup_menus); i++)
|
||||
EnableMenuItem(popup_menus[i].menu, IDM_FULLSCREEN,
|
||||
MF_BYCOMMAND |
|
||||
(resize_action == RESIZE_DISABLED)
|
||||
? MF_GRAYED : MF_ENABLED);
|
||||
(resize_action == RESIZE_DISABLED
|
||||
? MF_GRAYED : MF_ENABLED));
|
||||
/* Gracefully unzoom if necessary */
|
||||
if (IsZoomed(hwnd) && (resize_action == RESIZE_DISABLED))
|
||||
ShowWindow(hwnd, SW_RESTORE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче