|
@@ -1264,7 +1264,7 @@ SettingsDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
|
|
|
/* Initialize the dialog elements */
|
|
|
SendMessage(hDlg, WM_SETICON, (WPARAM)ICON_SMALL, (LPARAM)hIcon);
|
|
|
SendMessage(hDlg, WM_SETICON, (WPARAM)ICON_BIG, (LPARAM)hIcon);
|
|
|
- title = malloc(strlen(g_server_name) + 16);
|
|
|
+ title = (char *)malloc(strlen(g_server_name) + 16);
|
|
|
if (title) {
|
|
|
strcpy(title, g_server_name);
|
|
|
strcat(title, " settings");
|
|
@@ -1410,8 +1410,8 @@ get_password(const char *user,
|
|
|
static struct dlg_proc_param s_dlg_proc_param;
|
|
|
|
|
|
static struct {
|
|
|
- DLGTEMPLATE template; /* 18 bytes */
|
|
|
- WORD menu, class;
|
|
|
+ DLGTEMPLATE dlg_template; /* 18 bytes */
|
|
|
+ WORD menu, dlg_class;
|
|
|
wchar_t caption[1];
|
|
|
WORD fontsiz;
|
|
|
wchar_t fontface[7];
|
|
@@ -1661,7 +1661,7 @@ add_control(unsigned char **mem,
|
|
|
|
|
|
dia->cdit++;
|
|
|
|
|
|
- *mem = align(*mem, 3);
|
|
|
+ *mem = (unsigned char *)align(*mem, 3);
|
|
|
tp = (DLGITEMTEMPLATE *)*mem;
|
|
|
|
|
|
tp->id = id;
|
|
@@ -1672,7 +1672,7 @@ add_control(unsigned char **mem,
|
|
|
tp->cx = cx;
|
|
|
tp->cy = cy;
|
|
|
|
|
|
- p = align(*mem + sizeof(*tp), 1);
|
|
|
+ p = (LPWORD)align(*mem + sizeof(*tp), 1);
|
|
|
*p++ = 0xffff;
|
|
|
*p++ = type;
|
|
|
|
|
@@ -1680,7 +1680,7 @@ add_control(unsigned char **mem,
|
|
|
*p++ = (WCHAR)*caption++;
|
|
|
}
|
|
|
*p++ = 0;
|
|
|
- p = align(p, 1);
|
|
|
+ p = (LPWORD)align(p, 1);
|
|
|
|
|
|
*p++ = 0;
|
|
|
*mem = (unsigned char *)p;
|
|
@@ -1703,8 +1703,8 @@ show_settings_dialog()
|
|
|
static struct dlg_proc_param s_dlg_proc_param;
|
|
|
|
|
|
static struct {
|
|
|
- DLGTEMPLATE template; /* 18 bytes */
|
|
|
- WORD menu, class;
|
|
|
+ DLGTEMPLATE dlg_template; /* 18 bytes */
|
|
|
+ WORD menu, dlg_class;
|
|
|
wchar_t caption[1];
|
|
|
WORD fontsiz;
|
|
|
wchar_t fontface[7];
|
|
@@ -1889,8 +1889,8 @@ change_password_file()
|
|
|
static struct dlg_proc_param s_dlg_proc_param;
|
|
|
|
|
|
static struct {
|
|
|
- DLGTEMPLATE template; /* 18 bytes */
|
|
|
- WORD menu, class;
|
|
|
+ DLGTEMPLATE dlg_template; /* 18 bytes */
|
|
|
+ WORD menu, dlg_class;
|
|
|
wchar_t caption[1];
|
|
|
WORD fontsiz;
|
|
|
wchar_t fontface[7];
|
|
@@ -2101,8 +2101,8 @@ show_system_info()
|
|
|
static struct dlg_proc_param s_dlg_proc_param;
|
|
|
|
|
|
static struct {
|
|
|
- DLGTEMPLATE template; /* 18 bytes */
|
|
|
- WORD menu, class;
|
|
|
+ DLGTEMPLATE dlg_template; /* 18 bytes */
|
|
|
+ WORD menu, dlg_class;
|
|
|
wchar_t caption[1];
|
|
|
WORD fontsiz;
|
|
|
wchar_t fontface[7];
|
|
@@ -2452,15 +2452,15 @@ WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR cmdline, int show)
|
|
|
ShowWindow(hWnd, SW_HIDE);
|
|
|
|
|
|
if (g_icon_name) {
|
|
|
- hIcon =
|
|
|
+ hIcon = (HICON)
|
|
|
LoadImage(NULL, g_icon_name, IMAGE_ICON, 16, 16, LR_LOADFROMFILE);
|
|
|
} else {
|
|
|
- hIcon = LoadImage(GetModuleHandle(NULL),
|
|
|
- MAKEINTRESOURCE(ID_ICON),
|
|
|
- IMAGE_ICON,
|
|
|
- 16,
|
|
|
- 16,
|
|
|
- 0);
|
|
|
+ hIcon = (HICON)LoadImage(GetModuleHandle(NULL),
|
|
|
+ MAKEINTRESOURCE(ID_ICON),
|
|
|
+ IMAGE_ICON,
|
|
|
+ 16,
|
|
|
+ 16,
|
|
|
+ 0);
|
|
|
}
|
|
|
|
|
|
TrayIcon.cbSize = sizeof(TrayIcon);
|