Skip to content
Snippets Groups Projects
Commit 8efbe5e2 authored by Drake Arconis's avatar Drake Arconis
Browse files

Revert thing to fix windows build

parent d05aa61f
No related branches found
No related tags found
No related merge requests found
...@@ -644,7 +644,8 @@ std::string ll_convert_wide_to_string(const wchar_t* in, unsigned int code_page) ...@@ -644,7 +644,8 @@ std::string ll_convert_wide_to_string(const wchar_t* in, unsigned int code_page)
0); 0);
// We will need two more bytes for the double NULL ending // We will need two more bytes for the double NULL ending
// created in WideCharToMultiByte(). // created in WideCharToMultiByte().
char* pout = new char [len_out + 2] = {0}; char* pout = new char [len_out + 2];
memset(pout, 0, len_out + 2);
if(pout) if(pout)
{ {
WideCharToMultiByte( WideCharToMultiByte(
...@@ -675,7 +676,8 @@ wchar_t* ll_convert_string_to_wide(const std::string& in, unsigned int code_page ...@@ -675,7 +676,8 @@ wchar_t* ll_convert_string_to_wide(const std::string& in, unsigned int code_page
// reserve place to NULL terminator // reserve place to NULL terminator
int output_str_len = in.length(); int output_str_len = in.length();
wchar_t* w_out = new wchar_t[output_str_len + 1] = {0}; wchar_t* w_out = new wchar_t[output_str_len + 1];
memset(w_out, 0, output_str_len + 1);
int real_output_str_len = MultiByteToWideChar (code_page, 0, in.c_str(), in.length(), w_out, output_str_len); int real_output_str_len = MultiByteToWideChar (code_page, 0, in.c_str(), in.length(), w_out, output_str_len);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment