global-mapping-20040325
authorJeffrey Altman <jaltman@mit.edu>
Thu, 25 Mar 2004 19:35:49 +0000 (19:35 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 25 Mar 2004 19:35:49 +0000 (19:35 +0000)
Undo change imported from MIT bulk changes

src/WINNT/client_config/dlg_automap.cpp

index 5cce7a3..609f169 100644 (file)
@@ -449,13 +449,7 @@ void AutoMapEdit_OnInitDialog (HWND hDlg)
    SendMessage (hCombo, CB_SETCURSEL, iItemSel, 0);
 
    TCHAR szMapping[ MAX_PATH ];
-#ifdef NOLANA
    AdjustAfsPath (szMapping, ((pMap->szMapping[0]) ? pMap->szMapping : cm_slash_mount_root), TRUE, FALSE);
-#else
-    memset(szMapping, '\0', sizeof(szMapping));
-    szMapping[0] = '\\';
-    lana_GetNetbiosName(&szMapping[1], LANA_NETBIOS_NAME_FULL);
-#endif
    SetDlgItemText (hDlg, IDC_PATH, szMapping);
    SetDlgItemText (hDlg, IDC_DESC, pMap->szSubmount);
 
@@ -483,25 +477,12 @@ void AutoMapEdit_OnOK (HWND hDlg)
       return;
       }
 
-#ifdef NOLANA
     if ( (lstrncmpi (pMap->szMapping, cm_slash_mount_root, lstrlen(cm_slash_mount_root))) &&
          (lstrncmpi (pMap->szMapping, cm_back_slash_mount_root, lstrlen(cm_back_slash_mount_root))) )
     {
         Message (MB_ICONHAND, GetErrorTitle(), IDS_BADMAP_DESC);
         return;
     }
-#else
-   TCHAR szName[MAX_PATH];
-   memset(szName, '\0', sizeof(szName));
-   szName[0] = '\\';
-   lana_GetNetbiosName(&szName[1], LANA_NETBIOS_NAME_FULL);
-
-   if ( lstrncmpi (pMap->szMapping, szName, lstrlen(szName) ))
-      {
-      Message (MB_ICONHAND, GetErrorTitle(), IDS_BADMAP_DESC);
-      return;
-      }
-#endif
 
    // First get a proper submount
    if (pMap->szSubmount[0]) {