Jinoh Kang (@iamahuman) commented about dlls/user32/tests/class.c:
+ ret = RealGetWindowClassA(hwnd, class_name, 0); + ok(!ret, "got %d\n", ret); + todo_wine ok((GetLastError() == ERROR_INSUFFICIENT_BUFFER), "Unexpected last error %ld\n", GetLastError()); + + memset(class_name_w, 0, sizeof(class_name_w)); + SetLastError(0xdeadbeef); + ret = RealGetWindowClassW(hwnd, class_name_w, 0); + ok(!ret, "got %d\n", ret); + ok((GetLastError() == ERROR_INSUFFICIENT_BUFFER), "Unexpected last error %ld\n", GetLastError()); + + DestroyWindow(hwnd); + + /* Custom class, RealGetWindowClass behaves the same as GetClassName. */ + real_class_wndproc = NULL; + memset(&cls_a, 0, sizeof(cls_a)); + cls_a.lpfnWndProc = super_class_test_win_proc_a; We don't need `super_class_test_win_proc_a` here.
```suggestion:-2+0 memset(&cls_a, 0, sizeof(cls_a)); cls_a.lpfnWndProc = ClassTest_WndProc2; ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4092#note_49478