diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2020-10-13 20:23:40 +0200 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2020-10-14 06:58:04 +0200 |
commit | 112418070a5e61de248509b4bbb4986c962094f8 (patch) | |
tree | 4a27f84dcce0cba47eab0ffa40362c539a2737f2 /tests/server | |
parent | a32687798122fd9d4263caaf3ea844462bd69f50 (diff) | |
download | curl-112418070a5e61de248509b4bbb4986c962094f8.tar.gz |
tests/server/util.c: fix support for Windows Unicode builds
Detected via #6066
Closes #6070
Diffstat (limited to 'tests/server')
-rw-r--r-- | tests/server/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/server/util.c b/tests/server/util.c index e95d574f9..7dac532d7 100644 --- a/tests/server/util.c +++ b/tests/server/util.c @@ -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, |