From baa7923be28502af286237518046f2f913f534a0 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sat, 29 Sep 2018 13:10:07 -0400 Subject: [PATCH] fix oboe --- GUI/host/host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/host/host.h b/GUI/host/host.h index 0941749..56e9a8e 100644 --- a/GUI/host/host.h +++ b/GUI/host/host.h @@ -31,7 +31,7 @@ namespace Host inline std::wstring StringToWideString(const std::string& text, UINT encoding) { - std::wstring ret(text.size(), 0); + std::wstring ret(text.size() + 1, 0); ret.resize(MultiByteToWideChar(encoding, 0, text.c_str(), -1, ret.data(), ret.capacity())); return ret; }