Commit 9d927c73 authored by jan.koester's avatar jan.koester
Browse files

inital support regedit

parent 99df99b0
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -279,7 +279,6 @@ namespace confplus {
    
    void Registry::saveConfig(const char *path, const Config *conf){
        
        HKEY hRootKey;
        DWORD dwDisposition;
        std::string fullPath(path);
        HKEY hRootKey = HKEY_CURRENT_USER; // Standard-Root-Key
@@ -311,9 +310,9 @@ namespace confplus {
            // Subkey-Pfad ist der Rest nach dem ersten '\'
            subKeyPath = fullPath.substr(slashPos + 1);
        }

    OpenKey:
        LONG lRes = RegCreateKeyExA(
            REGISTRY_ROOT_KEY, // Nutzt den globalen Root-Key
            hRootKey, // Nutzt den globalen Root-Key
            path,
            0, NULL, REG_OPTION_NON_VOLATILE,
            KEY_ALL_ACCESS,