Hi Bram,

2014/9/24 Wed 4:54:09 UTC+9 Bram Moolenaar wrote:
> Patch 7.4.459
> Problem:    Can't change the icon after building Vim.
> Solution:   Load the icon from a file on startup. (Yasuhiro Matsumoto)
> Files:      src/gui_w32.c, src/os_mswin.c, src/os_win32.c, 
>             src/proto/os_mswin.pro

Warnings occur after this patch:

 gui_w32.c(1670) : warning C4047: 'function' : 'LPARAM' differs in levels of 
indirection from 'HANDLE'
 gui_w32.c(1670) : warning C4024: 'SendMessageA' : different types for formal 
and actual parameter 4


Here is a patch:

--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -1688,7 +1688,7 @@ gui_mch_init(void)
        HANDLE  hIcon = NULL;
 
        if (mch_icon_load(&hIcon) == OK && hIcon != NULL)
-           SendMessage(s_hwnd, WM_SETICON, ICON_SMALL, hIcon);
+           SendMessage(s_hwnd, WM_SETICON, ICON_SMALL, (LPARAM)hIcon);
     }
 
 #ifdef FEAT_MENU


Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui