1420 |
HANDLE hFile; |
HANDLE hFile; |
1421 |
DWORD filesize; |
DWORD filesize; |
1422 |
|
|
1423 |
if ((hFile = CreateFile(filename, GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0)) == INVALID_HANDLE_VALUE || |
if ((hFile = CreateFile(filename, GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0)) == INVALID_HANDLE_VALUE || |
1424 |
(filesize = GetFileSize(hFile, NULL)) == INVALID_FILE_SIZE) { |
(filesize = GetFileSize(hFile, NULL)) == INVALID_FILE_SIZE) { |
1425 |
MessageBox(hDlg, "Could not get file size", "Error", 0); |
MessageBox(hDlg, "Could not get file size", "Error", 0); |
1426 |
}else{ |
}else{ |
1995 |
|
|
1996 |
case IDC_DEFAULTS : |
case IDC_DEFAULTS : |
1997 |
config_reg_default(config); |
config_reg_default(config); |
1998 |
|
SendDlgItemMessage(hDlg, IDC_PROFILE, CB_SETCURSEL, config->profile, 0); |
1999 |
|
SendDlgItemMessage(hDlg, IDC_MODE, CB_SETCURSEL, config->mode, 0); |
2000 |
main_mode(hDlg, config); |
main_mode(hDlg, config); |
2001 |
main_upload(hDlg, config); |
main_upload(hDlg, config); |
2002 |
break; |
break; |