From 72d5f39e5c4b9285e29511b963394151a899cd6a Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 20 Jun 2024 15:24:22 +0200 Subject: [PATCH] Make testnative (on win32) UNICODE compatible --- test/testnativew32.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/testnativew32.c b/test/testnativew32.c index 94b04fcb61..ea5ee08f95 100644 --- a/test/testnativew32.c +++ b/test/testnativew32.c @@ -56,20 +56,20 @@ CreateWindowNative(int w, int h) wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); wc.lpszMenuName = NULL; - wc.lpszClassName = "SDL Test"; + wc.lpszClassName = TEXT("SDL Test"); if (!RegisterClass(&wc)) { - MessageBox(NULL, "Window Registration Failed!", "Error!", + MessageBox(NULL, TEXT("Window Registration Failed!"), TEXT("Error!"), MB_ICONEXCLAMATION | MB_OK); return 0; } hwnd = - CreateWindow("SDL Test", "", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, + CreateWindow(TEXT("SDL Test"), TEXT(""), WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, w, h, NULL, NULL, GetModuleHandle(NULL), NULL); if (!hwnd) { - MessageBox(NULL, "Window Creation Failed!", "Error!", + MessageBox(NULL, TEXT("Window Creation Failed!"), TEXT("Error!"), MB_ICONEXCLAMATION | MB_OK); return 0; }