expand-strings-20041012
authorJeffrey Altman <jaltman@mit.edu>
Wed, 13 Oct 2004 07:41:38 +0000 (07:41 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 13 Oct 2004 07:41:38 +0000 (07:41 +0000)
Stop blowing away the drive mappings of REG_EXPAND_SZ values due to
the use of the incorrect order of the parameters

src/WINNT/client_config/drivemap.cpp

index 9716c4a..5305f3c 100644 (file)
@@ -523,7 +523,7 @@ void QueryDriveMapList_ReadMappings (PDRIVEMAPLIST pList)
                       &dwType, (LPBYTE)mapping, &mappingLen);
         if ( dwType == REG_EXPAND_SZ ) {
             TCHAR buf[MAX_PATH];
-            DWORD dummyLen = ExpandEnvironmentStrings(buf, mapping, MAX_PATH);
+            DWORD dummyLen = ExpandEnvironmentStrings(mapping, buf, MAX_PATH);
             if (dummyLen > MAX_PATH)
                 continue;
             _tcsncpy(mapping, buf, MAX_PATH);