From: Jeffrey Altman Date: Thu, 6 May 2004 21:52:16 +0000 (+0000) Subject: mounttab-20040506 X-Git-Tag: openafs-devel-1_3_64~27 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=847d870c14c0c9b126d5a1691c10e5fc4b3e412b;p=packages%2Fo%2Fopenafs.git mounttab-20040506 ensure that we do not access an array with -1 --- diff --git a/src/WINNT/client_creds/mounttab.cpp b/src/WINNT/client_creds/mounttab.cpp index 1fb6d431e..d82a81b7b 100644 --- a/src/WINNT/client_creds/mounttab.cpp +++ b/src/WINNT/client_creds/mounttab.cpp @@ -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); }