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:
parent
0fbb75330b
commit
6bb7618e1e
1 changed files with 4 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue