| @@ -770,7 +770,7 @@ private: | |||||
| if (CharPointer_UTF8::isValidString (text, length)) | if (CharPointer_UTF8::isValidString (text, length)) | ||||
| return String::fromUTF8 (text, length); | return String::fromUTF8 (text, length); | ||||
| WCHAR wideVersion[64] = {}; | |||||
| WCHAR wideVersion[512] = {}; | |||||
| MultiByteToWideChar (CP_ACP, 0, text, length, wideVersion, numElementsInArray (wideVersion)); | MultiByteToWideChar (CP_ACP, 0, text, length, wideVersion, numElementsInArray (wideVersion)); | ||||
| return wideVersion; | return wideVersion; | ||||
| } | } | ||||
| @@ -1113,9 +1113,11 @@ private: | |||||
| String getLastDriverError() const | String getLastDriverError() const | ||||
| { | { | ||||
| jassert (asioObject != nullptr); | jassert (asioObject != nullptr); | ||||
| char buffer[512] = {}; | char buffer[512] = {}; | ||||
| asioObject->getErrorMessage (buffer); | asioObject->getErrorMessage (buffer); | ||||
| return String (buffer, sizeof (buffer) - 1); | |||||
| return convertASIOString (buffer, sizeof (buffer)); | |||||
| } | } | ||||
| String initDriver() | String initDriver() | ||||