|
|
| version 1.8, 2004/01/27 10:55:47 | version 1.9, 2004/02/13 20:31:55 |
|---|---|
| Line 291 void dialog_newdisk(HWND hWnd) { | Line 291 void dialog_newdisk(HWND hWnd) { |
| char path[MAX_PATH]; | char path[MAX_PATH]; |
| HINSTANCE hinst; | HINSTANCE hinst; |
| const char *ext; | |
| file_cpyname(path, fddfolder, sizeof(path)); | file_cpyname(path, fddfolder, sizeof(path)); |
| file_cutname(path); | file_cutname(path); |
| Line 300 void dialog_newdisk(HWND hWnd) { | Line 301 void dialog_newdisk(HWND hWnd) { |
| return; | return; |
| } | } |
| hinst = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE); | hinst = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE); |
| if (!file_cmpname(file_getext(path), str_thd)) { | ext = file_getext(path); |
| if (!file_cmpname(ext, str_thd)) { | |
| hddsize = 0; | hddsize = 0; |
| hddminsize = 5; | hddminsize = 5; |
| hddmaxsize = 256; | hddmaxsize = 256; |
| Line 309 void dialog_newdisk(HWND hWnd) { | Line 311 void dialog_newdisk(HWND hWnd) { |
| newdisk_thd(path, hddsize); | newdisk_thd(path, hddsize); |
| } | } |
| } | } |
| else if (!file_cmpname(file_getext(path), str_nhd)) { | else if (!file_cmpname(ext, str_nhd)) { |
| hddsize = 0; | hddsize = 0; |
| hddminsize = 5; | hddminsize = 5; |
| hddmaxsize = 512; | hddmaxsize = 512; |
| Line 318 void dialog_newdisk(HWND hWnd) { | Line 320 void dialog_newdisk(HWND hWnd) { |
| newdisk_nhd(path, hddsize); | newdisk_nhd(path, hddsize); |
| } | } |
| } | } |
| else if (!file_cmpname(file_getext(path), str_hdi)) { | else if (!file_cmpname(ext, str_hdi)) { |
| hddsize = 7; | hddsize = 7; |
| if (DialogBox(hinst, MAKEINTRESOURCE(IDD_NEWSASI), | if (DialogBox(hinst, MAKEINTRESOURCE(IDD_NEWSASI), |
| hWnd, (DLGPROC)NewSASIDlgProc) == IDOK) { | hWnd, (DLGPROC)NewSASIDlgProc) == IDOK) { |
| newdisk_hdi(path, hddsize); | newdisk_hdi(path, hddsize); |
| } | } |
| } | } |
| else if (!file_cmpname(file_getext(path), str_hdd)) { | else if (!file_cmpname(ext, str_hdd)) { |
| hddsize = 0; | hddsize = 0; |
| hddminsize = 2; | hddminsize = 2; |
| hddmaxsize = 512; | hddmaxsize = 512; |