NoGUI/Win32: Use explicit wide strings
This commit is contained in:
parent
ef226105c1
commit
f3c028d3af
|
@ -5,7 +5,7 @@
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
Log_SetChannel(Win32HostInterface);
|
Log_SetChannel(Win32HostInterface);
|
||||||
|
|
||||||
static constexpr _TCHAR WINDOW_CLASS_NAME[] = _T("DuckStationNoGUI");
|
static constexpr LPCWSTR WINDOW_CLASS_NAME = L"DuckStationNoGUI";
|
||||||
|
|
||||||
Win32HostInterface::Win32HostInterface() = default;
|
Win32HostInterface::Win32HostInterface() = default;
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ bool Win32HostInterface::RegisterWindowClass()
|
||||||
|
|
||||||
bool Win32HostInterface::CreatePlatformWindow()
|
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,
|
CW_USEDEFAULT, DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT, nullptr, nullptr,
|
||||||
GetModuleHandleA(nullptr), this);
|
GetModuleHandleA(nullptr), this);
|
||||||
if (!m_hwnd)
|
if (!m_hwnd)
|
||||||
|
|
Loading…
Reference in New Issue