fix-missing-parameters-20040403
authorJeffrey Altman <jaltman@mit.edu>
Sat, 3 Apr 2004 20:47:22 +0000 (20:47 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 3 Apr 2004 20:47:22 +0000 (20:47 +0000)
Fix missing username parameter in calls to Mount Drives

src/WINNT/client_config/drivemap.cpp

index fc6d9d8..e5afd9e 100644 (file)
@@ -624,7 +624,7 @@ BOOL ActivateDriveMap (TCHAR chDrive, LPTSTR pszMapping, LPTSTR pszSubmountReq,
       }
 
    // We now have a submount name and drive letter--map the network drive.
-   DWORD rc=MountDOSDrive(chDrive,szSubmount,fPersistent);
+   DWORD rc=MountDOSDrive(chDrive,szSubmount,fPersistent,NULL);
    if (rc == NO_ERROR)
       return TRUE;
 
@@ -1158,7 +1158,7 @@ BOOL GlobalMountDrive()
                break;
            }
        }
-       dwResult=MountDOSDrive(*szDriveToMapTo,(const char *)szSubMount,FALSE);
+       dwResult=MountDOSDrive(*szDriveToMapTo,(const char *)szSubMount,FALSE,NULL);
     }
     RegCloseKey(hKey);
     return TRUE;