summaryrefslogtreecommitdiffstats
path: root/src/gui_w48.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-01-28 13:18:26 +0000
committerBram Moolenaar <Bram@vim.org>2009-01-28 13:18:26 +0000
commit370feaf87f8f92627f97bb024d95832ce885a085 (patch)
tree9ee2953e6c0f6c88bf43f263175f0719a9a52ade /src/gui_w48.c
parent282937bc563e7e8387e28f896bf49b6622384265 (diff)
updated for version 7.2-089v7.2.089
Diffstat (limited to 'src/gui_w48.c')
-rw-r--r--src/gui_w48.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui_w48.c b/src/gui_w48.c
index 4de0c76392..76ed6b79db 100644
--- a/src/gui_w48.c
+++ b/src/gui_w48.c
@@ -1663,8 +1663,17 @@ process_message(void)
if (msg.message == WM_OLE)
{
char_u *str = (char_u *)msg.lParam;
- add_to_input_buf(str, (int)STRLEN(str));
- vim_free(str);
+ if (str == NULL || *str == NUL)
+ {
+ /* Message can't be ours, forward it. Fixes problem with Ultramon
+ * 3.0.4 */
+ DispatchMessage(&msg);
+ }
+ else
+ {
+ add_to_input_buf(str, (int)STRLEN(str));
+ vim_free(str); /* was allocated in CVim::SendKeys() */
+ }
return;
}
#endif