Remove the FileSystem option from the drive configuration.

This commit is contained in:
Dimitrie O. Paun 2004-03-12 19:44:04 +00:00 committed by Alexandre Julliard
parent af3fa1c48d
commit ced6ca78b8
6 changed files with 3 additions and 41 deletions

View File

@ -153,8 +153,6 @@ BEGIN
COMBOBOX IDC_COMBO_LETTER,31,20,78,60,CBS_DROPDOWNLIST | COMBOBOX IDC_COMBO_LETTER,31,20,78,60,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Browse...",IDC_BUTTON_BROWSE_PATH,154,5,40,13 PUSHBUTTON "Browse...",IDC_BUTTON_BROWSE_PATH,154,5,40,13
COMBOBOX IDC_COMBO_NAMES,31,36,78,60,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP
COMBOBOX IDC_COMBO_TYPE,31,52,78,60,CBS_DROPDOWNLIST | COMBOBOX IDC_COMBO_TYPE,31,52,78,60,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP WS_VSCROLL | WS_TABSTOP
CONTROL "Autodetect from Device:",IDC_RADIO_AUTODETECT,"Button", CONTROL "Autodetect from Device:",IDC_RADIO_AUTODETECT,"Button",

View File

@ -155,8 +155,6 @@ BEGIN
COMBOBOX IDC_COMBO_LETTER,31,20,78,60,CBS_DROPDOWNLIST | COMBOBOX IDC_COMBO_LETTER,31,20,78,60,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Examinar...",IDC_BUTTON_BROWSE_PATH,154,5,40,13 PUSHBUTTON "Examinar...",IDC_BUTTON_BROWSE_PATH,154,5,40,13
COMBOBOX IDC_COMBO_NAMES,31,36,78,60,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP
COMBOBOX IDC_COMBO_TYPE,31,52,78,60,CBS_DROPDOWNLIST | COMBOBOX IDC_COMBO_TYPE,31,52,78,60,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP WS_VSCROLL | WS_TABSTOP
CONTROL "Autodetectar desde dispositivo:",IDC_RADIO_AUTODETECT,"Button", CONTROL "Autodetectar desde dispositivo:",IDC_RADIO_AUTODETECT,"Button",

View File

@ -146,8 +146,6 @@ BEGIN
COMBOBOX IDC_COMBO_LETTER,31,20,78,60,CBS_DROPDOWNLIST | COMBOBOX IDC_COMBO_LETTER,31,20,78,60,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Procurar...",IDC_BUTTON_BROWSE_PATH,154,5,40,13 PUSHBUTTON "Procurar...",IDC_BUTTON_BROWSE_PATH,154,5,40,13
COMBOBOX IDC_COMBO_NAMES,31,36,78,60,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP
COMBOBOX IDC_COMBO_TYPE,31,52,78,60,CBS_DROPDOWNLIST | COMBOBOX IDC_COMBO_TYPE,31,52,78,60,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP WS_VSCROLL | WS_TABSTOP
CONTROL "Autodetectar do dispositivo:",IDC_RADIO_AUTODETECT,"Button", CONTROL "Autodetectar do dispositivo:",IDC_RADIO_AUTODETECT,"Button",

View File

@ -168,8 +168,6 @@ BEGIN
COMBOBOX IDC_COMBO_LETTER,31,20,78,60,CBS_DROPDOWNLIST | COMBOBOX IDC_COMBO_LETTER,31,20,78,60,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Îáçîð...",IDC_BUTTON_BROWSE_PATH,154,5,40,13 PUSHBUTTON "Îáçîð...",IDC_BUTTON_BROWSE_PATH,154,5,40,13
COMBOBOX IDC_COMBO_NAMES,31,36,78,60,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP
COMBOBOX IDC_COMBO_TYPE,31,52,78,60,CBS_DROPDOWNLIST | COMBOBOX IDC_COMBO_TYPE,31,52,78,60,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP WS_VSCROLL | WS_TABSTOP
CONTROL "Àâòîîïðåäåëèòü ñ óñòðîéñâà:",IDC_RADIO_AUTODETECT,"Button", CONTROL "Àâòîîïðåäåëèòü ñ óñòðîéñâà:",IDC_RADIO_AUTODETECT,"Button",

View File

@ -88,8 +88,8 @@ void setDriveValue(char letter, const char *valueName, const char *newValue) {
/* copies a drive configuration branch */ /* copies a drive configuration branch */
void copyDrive(char srcLetter, char destLetter) { void copyDrive(char srcLetter, char destLetter) {
char driveSection[sizeof("Drive X")]; char driveSection[sizeof("Drive X") + 1];
char *path, *label, *type, *serial, *fs; char *path, *label, *type, *serial;
WINE_TRACE("srcLetter=%c, destLetter=%c\n", srcLetter, destLetter); WINE_TRACE("srcLetter=%c, destLetter=%c\n", srcLetter, destLetter);
@ -98,24 +98,21 @@ void copyDrive(char srcLetter, char destLetter) {
label = getDriveValue(srcLetter, "Label"); label = getDriveValue(srcLetter, "Label");
type = getDriveValue(srcLetter, "Type"); type = getDriveValue(srcLetter, "Type");
serial = getDriveValue(srcLetter, "Serial"); serial = getDriveValue(srcLetter, "Serial");
fs = getDriveValue(srcLetter, "FileSystem");
sprintf(driveSection, "Drive %c", destLetter); sprintf(driveSection, "Drive %c", destLetter);
if (path) addTransaction(driveSection, "Path", ACTION_SET, path); if (path) addTransaction(driveSection, "Path", ACTION_SET, path);
if (label) addTransaction(driveSection, "Label", ACTION_SET, label); if (label) addTransaction(driveSection, "Label", ACTION_SET, label);
if (type) addTransaction(driveSection, "Type", ACTION_SET, type); if (type) addTransaction(driveSection, "Type", ACTION_SET, type);
if (serial) addTransaction(driveSection, "Serial", ACTION_SET, serial); if (serial) addTransaction(driveSection, "Serial", ACTION_SET, serial);
if (fs) addTransaction(driveSection, "FileSystem", ACTION_SET, fs);
if (path) free(path); if (path) free(path);
if (label) free(label); if (label) free(label);
if (type) free(type); if (type) free(type);
if (serial) free(serial); if (serial) free(serial);
if (fs) free(fs);
} }
void removeDrive(char letter) { void removeDrive(char letter) {
char driveSection[sizeof("Drive X")]; char driveSection[sizeof("Drive X") + 1];
sprintf(driveSection, "Drive %c", letter); sprintf(driveSection, "Drive %c", letter);
addTransaction(driveSection, NULL, ACTION_REMOVE, NULL); addTransaction(driveSection, NULL, ACTION_REMOVE, NULL);
} }
@ -258,14 +255,6 @@ static code_desc_pair type_pairs[] = {
}; };
#define DRIVE_TYPE_DEFAULT 1 #define DRIVE_TYPE_DEFAULT 1
static code_desc_pair fs_pairs[] = {
{"win95", "Long file names"},
{"msdos", "MS-DOS 8 character file names"},
{"unix", "UNIX file names"}
};
#define DRIVE_FS_DEFAULT 0
void fill_drive_droplist(long mask, char currentLetter, HWND hDlg) void fill_drive_droplist(long mask, char currentLetter, HWND hDlg)
{ {
@ -391,7 +380,6 @@ long drive_available_mask(char letter)
void refreshDriveEditDialog(HWND dialog) { void refreshDriveEditDialog(HWND dialog) {
char *path; char *path;
char *type; char *type;
char *fs;
char *serial; char *serial;
char *label; char *label;
char *device; char *device;
@ -424,22 +412,6 @@ void refreshDriveEditDialog(HWND dialog) {
} else WINE_WARN("no Type field?\n"); } else WINE_WARN("no Type field?\n");
/* FileSystem name handling */
fs = getDriveValue(editWindowLetter, "FileSystem");
if (fs) {
for( i=0, selection=-1; i < sizeof(fs_pairs)/sizeof(code_desc_pair); i++) {
SendDlgItemMessage(dialog, IDC_COMBO_NAMES, CB_ADDSTRING, 0,
(LPARAM) fs_pairs[i].sDesc);
if(strcasecmp(fs_pairs[i].sCode, fs) == 0){
selection = i;
}
}
if( selection == -1 ) selection = DRIVE_FS_DEFAULT;
SendDlgItemMessage(dialog, IDC_COMBO_NAMES, CB_SETCURSEL, selection, 0);
} else WINE_WARN("no FileSystem field?\n");
/* removeable media properties */ /* removeable media properties */
serial = getDriveValue(editWindowLetter, "Serial"); serial = getDriveValue(editWindowLetter, "Serial");
if (serial) { if (serial) {
@ -475,7 +447,6 @@ void refreshDriveEditDialog(HWND dialog) {
if (path) free(path); if (path) free(path);
if (type) free(type); if (type) free(type);
if (fs) free(fs);
if (serial) free(serial); if (serial) free(serial);
if (label) free(label); if (label) free(label);
if (device) free(device); if (device) free(device);

View File

@ -98,7 +98,6 @@
#define IDC_EDIT_PATH 1061 #define IDC_EDIT_PATH 1061
#define IDC_EDIT_SERIAL 1062 #define IDC_EDIT_SERIAL 1062
#define IDC_COMBO_LETTER 1063 #define IDC_COMBO_LETTER 1063
#define IDC_COMBO_NAMES 1064
#define IDC_COMBO_TYPE 1065 #define IDC_COMBO_TYPE 1065
#define IDC_EDIT_DEVICE 1066 #define IDC_EDIT_DEVICE 1066
#define IDC_BUTTON_BROWSE_PATH 1067 #define IDC_BUTTON_BROWSE_PATH 1067