From 847d870c14c0c9b126d5a1691c10e5fc4b3e412b Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 6 May 2004 21:52:16 +0000 Subject: [PATCH] mounttab-20040506 ensure that we do not access an array with -1 --- src/WINNT/client_creds/mounttab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5