gvim crashes when maximizing the window and using Ultramon's (3.0.4
beta) buttons.  I created the following patch against the latest
source but am unsure if it's the right way to handle this or how to go
about submitting it (I'm sure the instructions are somewhere but I
haven't found them-yet).

I'm running on Vista Ultimate x64.

This works for me but I'm wondering if using RegisterWindowMessage
instead of declaring WM_OLE = WM_APP+0 might be a better solution.
Anyone with more experience at this have an opinion?

Patch follows:

Index: src/gui_w48.c

===================================================================

--- src/gui_w48.c       (revision 1326)

+++ src/gui_w48.c       (working copy)

@@ -1662,10 +1662,20 @@

     /* Look after OLE Automation commands */
     if (msg.message == WM_OLE)
     {
-       char_u *str = (char_u *)msg.lParam;
-       add_to_input_buf(str, (int)STRLEN(str));
-       vim_free(str);
-       return;
+               char_u *str = (char_u *)msg.lParam;
+               int msgLength = (int)STRLEN(str);
+               if (msgLength == 0)
+               {
+                       // Sending message on its way since we're not handling 
it
+                       // Fixes problem with Ultramon 3.0.4
+                       DispatchMessage(&msg);
+               }
+               else
+               {
+                       add_to_input_buf(str, msgLength);
+                       vim_free(str);
+               }
+               return;
     }
 #endif


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui