summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Knight <andrew.knight@digia.com>2014-03-11 09:12:33 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-13 15:38:26 +0100
commitdb17c16a10e840e3ba6adc595a68af22620d27b6 (patch)
treee6179ebb51c3cf1708a84d1c46784e270c224153
parenteeb0ad35adb184ff17669a4be120d682b7d08045 (diff)
downloadqttools-db17c16a10e840e3ba6adc595a68af22620d27b6.tar.gz
qtd3dservice: Switch to HKLM for appx registry lookup
This works in service mode; the HKCR lookup did not. Change-Id: Ic4f81f1cb78e03ba8dbde87edaa14ad94b092df5 Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
-rw-r--r--src/qtd3dservice/d3dservice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qtd3dservice/d3dservice.cpp b/src/qtd3dservice/d3dservice.cpp
index 1054bc631..1754866b9 100644
--- a/src/qtd3dservice/d3dservice.cpp
+++ b/src/qtd3dservice/d3dservice.cpp
@@ -623,8 +623,8 @@ DWORD __stdcall deviceWorker(LPVOID param)
if (args->deviceName.isEmpty() || args->deviceName == QStringLiteral("local")) {
appList = appxAppNames;
LONG result = RegOpenKeyEx(
- HKEY_CLASSES_ROOT,
- L"\\Local Settings\\Software\\Microsoft\\Windows\\CurrentVersion\\AppModel\\Repository\\Packages",
+ HKEY_LOCAL_MACHINE,
+ L"SOFTWARE\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\CurrentVersion\\AppModel\\PackageRepository\\Packages",
0, KEY_NOTIFY, &waitKey);
if (result != ERROR_SUCCESS) {
qCWarning(lcD3DService) << "Unable to open registry key for Appx discovery:"