Windows fixes

This commit is contained in:
Jack Andersen
2017-11-13 17:32:44 -10:00
parent 6950d96b46
commit b7646f7f9a
4 changed files with 16 additions and 16 deletions

View File

@@ -375,7 +375,7 @@ public:
int clientReturn = 0;
std::thread clientThread([&]()
{
std::string thrName = WCSTMBS(getFriendlyName().c_str()) + " Client Thread";
std::string thrName = WCSTMBS(getFriendlyName().data()) + " Client Thread";
logvisor::RegisterThreadName(thrName.c_str());
CoInitializeEx(nullptr, COINIT_MULTITHREADED | COINIT_DISABLE_OLE1DDE);
clientReturn = m_callback.appMain(this);
@@ -486,7 +486,7 @@ int ApplicationRun(IApplication::EPlatformType platform,
const std::vector<SystemString>& args,
bool singleInstance)
{
std::string thrName = WCSTMBS(friendlyName.c_str()) + " Main Thread";
std::string thrName = WCSTMBS(friendlyName.data()) + " Main Thread";
logvisor::RegisterThreadName(thrName.c_str());
if (APP)
return 1;

View File

@@ -972,7 +972,7 @@ public:
WindowWin32(SystemStringView title, Boo3DAppContextWin32& b3dCtx, void* vulkanHandle, uint32_t sampleCount)
{
m_hwnd = CreateWindowW(L"BooWindow", title.c_str(), WS_OVERLAPPEDWINDOW,
m_hwnd = CreateWindowW(L"BooWindow", title.data(), WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
NULL, NULL, NULL, NULL);
HINSTANCE wndInstance = HINSTANCE(GetWindowLongPtr(m_hwnd, GWLP_HINSTANCE));