From e5dcd336800b2cdb633d5d373412442cc7b38150 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Fri, 21 Sep 2018 22:20:53 -0400 Subject: [PATCH] bugfix --- 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 c1b4c15..2aebd7e 100644 --- a/GUI/host/host.h +++ b/GUI/host/host.h @@ -32,7 +32,7 @@ namespace Host inline std::wstring ToWString(const char* text, UINT encoding) { std::wstring ret(strlen(text), 0); - ret.resize(MultiByteToWideChar(encoding, 0, text, -1, ret.data(), ret.size())); + ret.resize(MultiByteToWideChar(encoding, 0, text, -1, ret.data(), ret.capacity())); return ret; }