2 Subject: Patch 7.2.089 (extra)
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Win32: crash when using Ultramon buttons.
12 Solution: Don't use a WM_OLE message of zero size. (Ray Megal)
13 Files: src/if_ole.cpp, src/gui_w48.c
16 *** ../vim-7.2.088/src/if_ole.cpp Sun Mar 16 14:53:11 2008
17 --- src/if_ole.cpp Mon Jan 19 21:16:33 2009
22 /* Pass the string to the main input loop. The memory will be freed when
23 ! * the message is processed.
25 ! PostMessage(NULL, WM_OLE, 0, (LPARAM)str);
32 /* Pass the string to the main input loop. The memory will be freed when
33 ! * the message is processed. Except for an empty message, we don't need
39 ! PostMessage(NULL, WM_OLE, 0, (LPARAM)str);
43 *** ../vim-7.2.088/src/gui_w48.c Wed Dec 24 12:20:10 2008
44 --- src/gui_w48.c Mon Jan 19 21:19:30 2009
47 if (msg.message == WM_OLE)
49 char_u *str = (char_u *)msg.lParam;
50 ! add_to_input_buf(str, (int)STRLEN(str));
56 if (msg.message == WM_OLE)
58 char_u *str = (char_u *)msg.lParam;
59 ! if (str == NULL || *str == NUL)
61 ! /* Message can't be ours, forward it. Fixes problem with Ultramon
63 ! DispatchMessage(&msg);
67 ! add_to_input_buf(str, (int)STRLEN(str));
68 ! vim_free(str); /* was allocated in CVim::SendKeys() */
73 *** ../vim-7.2.088/src/version.c Thu Jan 22 21:49:21 2009
74 --- src/version.c Wed Jan 28 14:16:01 2009
78 { /* Add new patch number below this line */
85 How To Keep A Healthy Level Of Insanity:
86 16. Have your coworkers address you by your wrestling name, Rock Hard Kim.
88 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
89 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
90 \\\ download, build and distribute -- http://www.A-A-P.org ///
91 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///