NoGUI/Win32: Use explicit wide strings

This commit is contained in:
Connor McLaughlin 2021-07-04 18:11:17 +10:00
parent ef226105c1
commit f3c028d3af
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
#include <tchar.h>
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)