1407 |
|
|
1408 |
ofn.hwndOwner = hDlg; |
ofn.hwndOwner = hDlg; |
1409 |
if (LOWORD(wParam)==IDC_BITRATE_SSELECT) { |
if (LOWORD(wParam)==IDC_BITRATE_SSELECT) { |
1410 |
ofn.lpstrFilter = "Subtitle files (*.sub, *.ssa)\0*.sub;*.ssa\0All files (*.*)\0*.*\0\0"; |
ofn.lpstrFilter = "Subtitle files (*.sub, *.ssa, *.txt, *.dat)\0*.sub;*.ssa;*.txt;*.dat\0All files (*.*)\0*.*\0\0"; |
1411 |
}else{ |
}else{ |
1412 |
ofn.lpstrFilter = "Audio files (*.mp3, *.ac3)\0*.mp3; *.ac3\0All files (*.*)\0*.*\0\0"; |
ofn.lpstrFilter = "Audio files (*.mp3, *.ac3, *.aac, *.ogg, *.wav)\0*.mp3; *.ac3; *.aac; *.ogg; *.wav\0All files (*.*)\0*.*\0\0"; |
1413 |
} |
} |
1414 |
|
|
1415 |
ofn.lpstrFile = filename; |
ofn.lpstrFile = filename; |
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; |