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