Jinoh Kang (@iamahuman) commented about dlls/user32/tests/msg.c:
- UINT class_style;
- WNDCLASSA cls = {
.style = class_style,
.lpfnWndProc = DefWindowProcA,
.hInstance = GetModuleHandleA(0),
.hCursor = LoadCursorA(0, (LPCSTR)IDC_ARROW),
.hbrBackground = GetStockObject(WHITE_BRUSH),
.lpszClassName = "TestHVRedrawClass"
- };
- hwnd = CreateWindowExA( 0, classname, "Test window", style, x0, y0, w0, h0, hparent, 0, 0, NULL );
- ok(hwnd != NULL, "Failed to create the window\n");
- register_class(&cls);
- class_style = GetClassLongA( hwnd, GCL_STYLE );
- hwnd = CreateWindowExA( 0, "TestHVRedrawClass", "Test window", style, x0, y0, w0, h0, hparent, 0, 0, NULL );
```suggestion:-0+0 hwnd = CreateWindowExA( 0, cls.lpszClassName, "Test window", style, x0, y0, w0, h0, hparent, 0, 0, NULL ); ```