1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00

tests/server/util.c: fix support for Windows Unicode builds

Detected via #6066
Closes #6070
This commit is contained in:
Marc Hoersken 2020-10-13 20:23:40 +02:00
parent a326877981
commit 112418070a
No known key found for this signature in database
GPG Key ID: 61E03CBED7BC859E

View File

@ -682,13 +682,14 @@ static DWORD WINAPI main_window_loop(LPVOID lpParameter)
ZeroMemory(&wc, sizeof(wc));
wc.lpfnWndProc = (WNDPROC)main_window_proc;
wc.hInstance = (HINSTANCE)lpParameter;
wc.lpszClassName = "MainWClass";
wc.lpszClassName = TEXT("MainWClass");
if(!RegisterClass(&wc)) {
perror("RegisterClass failed");
return (DWORD)-1;
}
hidden_main_window = CreateWindowEx(0, "MainWClass", "Recv WM_CLOSE msg",
hidden_main_window = CreateWindowEx(0, TEXT("MainWClass"),
TEXT("Recv WM_CLOSE msg"),
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,