summaryrefslogtreecommitdiffstats
path: root/src/activeqt/container/qaxselect.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2016-04-08 10:28:24 +0200
committerLiang Qi <liang.qi@theqtcompany.com>2016-04-08 10:28:24 +0200
commitb5440b50f23982e7459a66b46ad41f176f67e308 (patch)
treed4e4e50e5a5ae84df442c1e4d2345539943692aa /src/activeqt/container/qaxselect.cpp
parent7477c86107ac0f5d344b380b38118c3a90f994a7 (diff)
parenta4b8485cd38a9c33cdcf1b97633fa65b7230643b (diff)
Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.0-beta1
Conflicts: src/activeqt/container/qaxwidget.h Change-Id: Ic6e7267fc71e3ace14e75b392ad3f7cac0df41a1
Diffstat (limited to 'src/activeqt/container/qaxselect.cpp')
-rw-r--r--src/activeqt/container/qaxselect.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/activeqt/container/qaxselect.cpp b/src/activeqt/container/qaxselect.cpp
index 0b40e78..0fc7d62 100644
--- a/src/activeqt/container/qaxselect.cpp
+++ b/src/activeqt/container/qaxselect.cpp
@@ -170,18 +170,20 @@ static QList<Control> readControls(const wchar_t *rootKey, unsigned wordSize)
if (result == ERROR_SUCCESS) {
RegCloseKey(subKey);
szBuffer = sizeof(buffer) / sizeof(wchar_t);
- RegistryQueryValue(classesKey, buffer, (LPBYTE)buffer, &szBuffer);
+ RegistryQueryValue(classesKey, buffer, reinterpret_cast<LPBYTE>(buffer), &szBuffer);
Control control;
control.clsid = clsid;
control.wordSize = wordSize;
control.name = QString::fromWCharArray(buffer);
szBuffer = sizeof(buffer) / sizeof(wchar_t);
- if (querySubKeyValue(classesKey, clsid + QStringLiteral("\\InprocServer32"), (LPBYTE)buffer, &szBuffer)) {
+ if (querySubKeyValue(classesKey, clsid + QStringLiteral("\\InprocServer32"),
+ reinterpret_cast<LPBYTE>(buffer), &szBuffer)) {
control.dll = QString::fromWCharArray(buffer);
control.dll.replace(systemRootPattern, systemRoot);
}
szBuffer = sizeof(buffer) / sizeof(wchar_t);
- if (querySubKeyValue(classesKey, clsid + QStringLiteral("\\VERSION"), (LPBYTE)buffer, &szBuffer))
+ if (querySubKeyValue(classesKey, clsid + QStringLiteral("\\VERSION"),
+ reinterpret_cast<LPBYTE>(buffer), &szBuffer))
control.version = QString::fromWCharArray(buffer);
controls.push_back(control);
}