Karsten Hopp 809903
To: vim-dev@vim.org
Karsten Hopp 809903
Subject: Patch 7.2.352
Karsten Hopp 809903
Fcc: outbox
Karsten Hopp 809903
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 809903
Mime-Version: 1.0
Karsten Hopp 809903
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 809903
Content-Transfer-Encoding: 8bit
Karsten Hopp 809903
------------
Karsten Hopp 809903
Karsten Hopp 809903
Patch 7.2.352
Karsten Hopp 809903
Problem:    Win64: Vim doesn't work when cross-compiled with MingW libraries.
Karsten Hopp 809903
Solution:   Always return TRUE for the WM_NCCREATE message. (Andy Kittner)
Karsten Hopp 809903
Files:	    src/gui_w48.c
Karsten Hopp 809903
Karsten Hopp 809903
Karsten Hopp 809903
*** ../vim-7.2.351/src/gui_w48.c	2009-01-28 21:22:20.000000000 +0100
Karsten Hopp 809903
--- src/gui_w48.c	2010-02-03 12:07:11.000000000 +0100
Karsten Hopp 809903
***************
Karsten Hopp 809903
*** 1084,1092 ****
Karsten Hopp 809903
  	case WM_NOTIFY: Handle_WM_Notify(hwnd, (LPNMHDR)lParam);
Karsten Hopp 809903
  	    return TRUE;
Karsten Hopp 809903
  #endif
Karsten Hopp 809903
  
Karsten Hopp 809903
!     default:
Karsten Hopp 809903
! 	return MyWindowProc(hwnd, uMsg, wParam, lParam);
Karsten Hopp 809903
      }
Karsten Hopp 809903
  }
Karsten Hopp 809903
  
Karsten Hopp 809903
--- 1084,1098 ----
Karsten Hopp 809903
  	case WM_NOTIFY: Handle_WM_Notify(hwnd, (LPNMHDR)lParam);
Karsten Hopp 809903
  	    return TRUE;
Karsten Hopp 809903
  #endif
Karsten Hopp 809903
+ 	/* Workaround for the problem that MyWindowProc() returns FALSE on 64
Karsten Hopp 809903
+ 	 * bit windows when cross-compiled using Mingw libraries. (Andy
Karsten Hopp 809903
+ 	 * Kittner) */
Karsten Hopp 809903
+ 	case WM_NCCREATE:
Karsten Hopp 809903
+ 	    MyWindowProc(hwnd, uMsg, wParam, lParam);
Karsten Hopp 809903
+ 	    return TRUE;
Karsten Hopp 809903
  
Karsten Hopp 809903
! 	default:
Karsten Hopp 809903
! 	    return MyWindowProc(hwnd, uMsg, wParam, lParam);
Karsten Hopp 809903
      }
Karsten Hopp 809903
  }
Karsten Hopp 809903
  
Karsten Hopp 809903
*** ../vim-7.2.351/src/version.c	2010-01-28 22:58:10.000000000 +0100
Karsten Hopp 809903
--- src/version.c	2010-02-03 12:16:30.000000000 +0100
Karsten Hopp 809903
***************
Karsten Hopp 809903
*** 683,684 ****
Karsten Hopp 809903
--- 683,686 ----
Karsten Hopp 809903
  {   /* Add new patch number below this line */
Karsten Hopp 809903
+ /**/
Karsten Hopp 809903
+     352,
Karsten Hopp 809903
  /**/
Karsten Hopp 809903
Karsten Hopp 809903
-- 
Karsten Hopp 809903
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 809903
185. You order fast food over the Internet
Karsten Hopp 809903
Karsten Hopp 809903
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 809903
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 809903
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 809903
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///