Fixed the third batch of problems.
This commit is contained in:
@@ -383,6 +383,7 @@ WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpszArg, int nCmdShow)
|
||||
if (source_hwnd)
|
||||
PostMessage((HWND) (uintptr_t) source_hwnd, WM_HAS_SHUTDOWN, (WPARAM) 0, (LPARAM) hwndMain);
|
||||
|
||||
free(argw);
|
||||
return(1);
|
||||
}
|
||||
|
||||
@@ -393,6 +394,7 @@ WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpszArg, int nCmdShow)
|
||||
/* Handle our GUI. */
|
||||
i = ui_init(nCmdShow);
|
||||
|
||||
free(argw);
|
||||
return(i);
|
||||
}
|
||||
|
||||
|
||||
@@ -88,8 +88,8 @@ extern HICON hIcon[256];
|
||||
|
||||
// extern int status_is_open;
|
||||
|
||||
extern char openfilestring[260];
|
||||
extern WCHAR wopenfilestring[260];
|
||||
extern char openfilestring[512];
|
||||
extern WCHAR wopenfilestring[512];
|
||||
|
||||
extern uint8_t filterindex;
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
#include "win.h"
|
||||
|
||||
|
||||
WCHAR wopenfilestring[260];
|
||||
char openfilestring[260];
|
||||
WCHAR wopenfilestring[512];
|
||||
char openfilestring[512];
|
||||
uint8_t filterindex = 0;
|
||||
|
||||
|
||||
|
||||
@@ -608,6 +608,7 @@ NewFloppyDialogProcedure(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
new_floppy_msgbox(hdlg, MBX_ERROR, (wchar_t *)IDS_4108);
|
||||
return TRUE;
|
||||
}
|
||||
/*FALLTHROUGH*/
|
||||
case IDCANCEL:
|
||||
EndDialog(hdlg, 0);
|
||||
plat_pause(0);
|
||||
|
||||
@@ -2924,8 +2924,9 @@ hdd_add_file_open_error:
|
||||
chs_enabled = 1;
|
||||
|
||||
no_update = 0;
|
||||
} else
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
h = GetDlgItem(hdlg, IDC_EDIT_HD_FILE_NAME);
|
||||
|
||||
@@ -59,8 +59,8 @@ int infocus = 1;
|
||||
int rctrl_is_lalt = 0;
|
||||
int user_resize = 0;
|
||||
|
||||
char openfilestring[260];
|
||||
WCHAR wopenfilestring[260];
|
||||
char openfilestring[512];
|
||||
WCHAR wopenfilestring[512];
|
||||
|
||||
|
||||
/* Local data. */
|
||||
|
||||
Reference in New Issue
Block a user