windows-pcache-20050310
[openafs.git] / src / WINNT / client_config / dlg_automap.cpp
index 609f169..842e983 100644 (file)
@@ -14,6 +14,7 @@ extern "C" {
 }
 
 #include "afs_config.h"
+#include <WINNT\afsreg.h>
 #include <stdio.h>
 #include <lanahelper.h>
 
@@ -218,7 +219,7 @@ BOOL UpdateRegistry(DRIVEMAP *pDrive, BOOL bRemove)
    if (!pDrive)
       return FALSE;
 
-   _stprintf(szKeyName, TEXT("%s\\GlobalAutoMapper"), AFSDConfigKeyName);
+   _stprintf(szKeyName, TEXT("%s\\GlobalAutoMapper"), TEXT(AFSREG_CLT_SVC_PARAM_SUBKEY));
 
    if (RegCreateKeyEx(HKEY_LOCAL_MACHINE, szKeyName, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_SET_VALUE, NULL, &hKey, &dwDispo) != ERROR_SUCCESS)
       return FALSE;