We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c15d96 commit a237ca7Copy full SHA for a237ca7
plugins/TelescopeControl/src/common/OLE.cpp
@@ -164,7 +164,7 @@ QString variantToQstring(VARIANT &var)
164
// Attempt to convert to string type (VT_BSTR)
165
if (SUCCEEDED(VariantChangeType(&varDest, &var, 0, VT_BSTR))) {
166
out.first="VT_BSTR";
167
- out.second=QString(varDest.bstrVal);
+ out.second=QString::fromUtf16(reinterpret_cast<const ushort*>(varDest.bstrVal));
168
VariantClear(&varDest); // Clean up
169
} else {
170
out.first="Not";
0 commit comments