From: Jeffrey Altman Date: Sat, 20 Mar 2004 07:55:38 +0000 (+0000) Subject: tab-drives-20040319 X-Git-Tag: openafs-devel-1_3_61~15 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c763e4b64308867c4bbc36f243462701c63874bf;p=packages%2Fo%2Fopenafs.git tab-drives-20040319 the mount root is used to define mount paths not the netbios name --- diff --git a/src/WINNT/client_config/tab_drives.cpp b/src/WINNT/client_config/tab_drives.cpp index 69b701d29..9c2afd156 100644 --- a/src/WINNT/client_config/tab_drives.cpp +++ b/src/WINNT/client_config/tab_drives.cpp @@ -433,10 +433,8 @@ void DriveEdit_OnInitDialog (HWND hDlg) SendMessage (hCombo, CB_SETCURSEL, iItemSel, 0); TCHAR szMapping[ MAX_PATH ]; - memset(szMapping, '\0', sizeof(szMapping)); - szMapping[0] = '\\'; - lana_GetNetbiosName(&szMapping[1], LANA_NETBIOS_NAME_FULL); - + AdjustAfsPath (szMapping, ((pMap->szMapping[0]) ? pMap->szMapping : cm_slash_mount_root), TRUE, FALSE); + CHAR msg[256], msgf[256]; if (GetDlgItemText(hDlg,IDC_STATICSUBMOUNT,(LPSTR)msg,sizeof(msg)-1)>0) {