Commit d55161af authored by Jan Köster's avatar Jan Köster
Browse files

test

parent fe9839e7
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -288,9 +288,14 @@ namespace confplus {

            // Every confplus path segment becomes its own registry key:
            // /zaehler2mqtt/http/addr -> zaehler2mqtt\ -> http\ -> addr\
            std::string subKeyPath = currentPath.empty()
                ? localKeyName
                : (currentPath + "\\" + localKeyName);
            std::string subKeyPath;
            if (currentPath.empty()) {
                subKeyPath = localKeyName;
            } else {
                subKeyPath = currentPath;
                subKeyPath += "\\";
                subKeyPath += localKeyName;
            }

            HKEY hSubKey = nullptr;
            DWORD dwDisp = 0;