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)