diff --git a/MT5Connector/MT5Connector.cpp b/MT5Connector/MT5Connector.cpp index a1f4bdd5..ee7acda3 100755 --- a/MT5Connector/MT5Connector.cpp +++ b/MT5Connector/MT5Connector.cpp @@ -53,7 +53,7 @@ void convertSystemString(wchar_t* dest, String^ src) { pin_ptr wch = PtrToStringChars(src); memcpy(dest, wch, wcslen(wch) * sizeof(wchar_t)); - dest[wcslen(wch)] = '\0'; + dest[wcslen(wch)] = L'\0'; } #define _DLLAPI extern "C" __declspec(dllexport)