Jinoh Kang (@iamahuman) commented about dlls/user32/tests/class.c:
- { "ListBox", "ListBox", FALSE, TRUE, TRUE, TRUE, TRUE },
- { "ScrollBar", "ScrollBar", FALSE, TRUE, FALSE, TRUE, TRUE },
- { "Static", "Static", TRUE, TRUE, TRUE, TRUE, FALSE },
- { "ComboLBox", "ListBox", FALSE, TRUE, TRUE, TRUE, TRUE },
- { "MDIClient", "MDIClient", TRUE, TRUE, TRUE, TRUE, TRUE },
- { "#32768", "#32768", FALSE, FALSE, TRUE, TRUE, TRUE },
- { "#32770", "#32770", TRUE, TRUE, TRUE, TRUE, TRUE },
- /* Not all built-in classes set real window class. */
- { "Message", SUPER_CLASS_NAME_A, FALSE, FALSE, FALSE, FALSE, FALSE },
+};
+static WNDPROC real_class_wndproc; +static UINT real_class_wndproc_passthrough_msg; +static LRESULT WINAPI super_class_test_win_proc_a(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) +{
- if ((msg == real_class_wndproc_passthrough_msg) && real_class_wndproc)
If we eliminate the `real_class_wndproc = NULL` case, then we can simplify this to:
```suggestion:-0+0 if (msg == real_class_wndproc_passthrough_msg) ```