1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

ASIO: Call convertASIOString() in getLastDriverError()

This commit is contained in:
ed 2019-01-10 17:36:00 +00:00
parent 0fbb75330b
commit 6bb7618e1e

View file

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