From f3c028d3af3c79d42ad27e06a3106cea831590a4 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 4 Jul 2021 18:11:17 +1000 Subject: [PATCH] NoGUI/Win32: Use explicit wide strings --- src/duckstation-nogui/win32_host_interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/duckstation-nogui/win32_host_interface.cpp b/src/duckstation-nogui/win32_host_interface.cpp index 30fd41f75..27ebe9eec 100644 --- a/src/duckstation-nogui/win32_host_interface.cpp +++ b/src/duckstation-nogui/win32_host_interface.cpp @@ -5,7 +5,7 @@ #include Log_SetChannel(Win32HostInterface); -static constexpr _TCHAR WINDOW_CLASS_NAME[] = _T("DuckStationNoGUI"); +static constexpr LPCWSTR WINDOW_CLASS_NAME = L"DuckStationNoGUI"; Win32HostInterface::Win32HostInterface() = default; @@ -59,7 +59,7 @@ bool Win32HostInterface::RegisterWindowClass() bool Win32HostInterface::CreatePlatformWindow() { - m_hwnd = CreateWindowExW(WS_EX_CLIENTEDGE, WINDOW_CLASS_NAME, _T("DuckStation"), WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, + m_hwnd = CreateWindowExW(WS_EX_CLIENTEDGE, WINDOW_CLASS_NAME, L"DuckStation", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT, nullptr, nullptr, GetModuleHandleA(nullptr), this); if (!m_hwnd)