Skip to content

Commit a237ca7

Browse files
committed
Fix for Qt5
1 parent 2c15d96 commit a237ca7

File tree

1 file changed

+1
-1
lines changed
  • plugins/TelescopeControl/src/common

1 file changed

+1
-1
lines changed

plugins/TelescopeControl/src/common/OLE.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ QString variantToQstring(VARIANT &var)
164164
// Attempt to convert to string type (VT_BSTR)
165165
if (SUCCEEDED(VariantChangeType(&varDest, &var, 0, VT_BSTR))) {
166166
out.first="VT_BSTR";
167-
out.second=QString(varDest.bstrVal);
167+
out.second=QString::fromUtf16(reinterpret_cast<const ushort*>(varDest.bstrVal));
168168
VariantClear(&varDest); // Clean up
169169
} else {
170170
out.first="Not";

0 commit comments

Comments
 (0)