1 Aug
2024
1 Aug
'24
11:43 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/tests/propsheet.c:
+ case WM_NOTIFY: + lpnmhdr = (NMHDR *)lParam; + switch (lpnmhdr->code) + { + case PSN_QUERYINITIALFOCUS: + { + if (!query_initial_focus) + { + SetWindowLongPtrA(hdlg, DWLP_MSGRESULT, (LONG_PTR)GetDlgItem(hdlg, IDC_PS_EDIT2)); + query_initial_focus = 1; + return 1; + } + else + { + query_initial_focus = 0; + } Let's remove the unnecessary default cases.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6145#note_77519