From a0c5fe67a8668b6eba38a184cba954a30286e6b2 Mon Sep 17 00:00:00 2001 From: MuldeR Date: Mon, 17 Nov 2014 00:37:03 +0100 Subject: [PATCH] Windows XP compatibility fix: RegDeleteTree() does not exist until Vista, so we use SHDeleteKey() instead. It exists since Win2k and provides the same functionality. --- src/Utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Utils.cpp b/src/Utils.cpp index ad7f5d9..7e4d9c8 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -30,6 +30,7 @@ #include #include #include +#include //StdLib #include @@ -569,7 +570,7 @@ bool mixp_reg_value_read(int rootKey, const QString &keyName, const QString &val */ bool mixp_reg_key_delete(int rootKey, const QString &keyName) { - return (RegDeleteTree(mixp_reg_root(rootKey), QWCHAR(keyName)) == ERROR_SUCCESS); + return (SHDeleteKey( mixp_reg_root(rootKey), QWCHAR(keyName)) == ERROR_SUCCESS); } /*