mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18:48 -05:00
tests/server/util.c: fix support for Windows Unicode builds
Detected via #6066 Closes #6070
This commit is contained in:
parent
a326877981
commit
112418070a
@ -682,13 +682,14 @@ static DWORD WINAPI main_window_loop(LPVOID lpParameter)
|
|||||||
ZeroMemory(&wc, sizeof(wc));
|
ZeroMemory(&wc, sizeof(wc));
|
||||||
wc.lpfnWndProc = (WNDPROC)main_window_proc;
|
wc.lpfnWndProc = (WNDPROC)main_window_proc;
|
||||||
wc.hInstance = (HINSTANCE)lpParameter;
|
wc.hInstance = (HINSTANCE)lpParameter;
|
||||||
wc.lpszClassName = "MainWClass";
|
wc.lpszClassName = TEXT("MainWClass");
|
||||||
if(!RegisterClass(&wc)) {
|
if(!RegisterClass(&wc)) {
|
||||||
perror("RegisterClass failed");
|
perror("RegisterClass failed");
|
||||||
return (DWORD)-1;
|
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,
|
WS_OVERLAPPEDWINDOW,
|
||||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||||
|
Loading…
Reference in New Issue
Block a user