mounttab-20040506
authorJeffrey Altman <jaltman@mit.edu>
Thu, 6 May 2004 21:52:16 +0000 (21:52 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 6 May 2004 21:52:16 +0000 (21:52 +0000)
ensure that we do not access an array with -1

src/WINNT/client_creds/mounttab.cpp

index 1fb6d43..d82a81b 100644 (file)
@@ -195,9 +195,9 @@ void Mount_OnCheck (HWND hDlg)
             Message (MB_OK | MB_ICONHAND, IDS_ERROR_UNMAP, IDS_ERROR_UNMAP_DESC, TEXT("%08lX"), dwStatus);
          Mount_OnUpdate (hDlg);
          }
+      WriteActiveMap(List.aDriveMap[ iDriveSel ].chDrive, fChecked && List.aDriveMap[ iDriveSel ].fPersistent );
       }
 
-   WriteActiveMap(List.aDriveMap[ iDriveSel ].chDrive, fChecked && List.aDriveMap[ iDriveSel ].fPersistent );
    FreeDriveMapList (&List);
 }