Karsten Hopp 727940
To: vim-dev@vim.org
Karsten Hopp 727940
Subject: Patch 7.2.365 (extra)
Karsten Hopp 727940
Fcc: outbox
Karsten Hopp 727940
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 727940
Mime-Version: 1.0
Karsten Hopp 727940
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 727940
Content-Transfer-Encoding: 8bit
Karsten Hopp 727940
------------
Karsten Hopp 727940
Karsten Hopp 727940
Patch 7.2.365 (extra)
Karsten Hopp 727940
Problem:    MS-Windows with MingW: "File->Save As" does not work. (John
Karsten Hopp 727940
	    Marriott)
Karsten Hopp 727940
Solution:   Correctly fill in structure size. (Andy Kittner)
Karsten Hopp 727940
Files:	    src/gui_w48.c
Karsten Hopp 727940
Karsten Hopp 727940
Karsten Hopp 727940
*** ../vim-7.2.364/src/gui_w48.c	2010-02-17 16:31:27.000000000 +0100
Karsten Hopp 727940
--- src/gui_w48.c	2010-02-17 17:30:15.000000000 +0100
Karsten Hopp 727940
***************
Karsten Hopp 727940
*** 3345,3351 ****
Karsten Hopp 727940
  #ifdef OPENFILENAME_SIZE_VERSION_400
Karsten Hopp 727940
      /* be compatible with Windows NT 4.0 */
Karsten Hopp 727940
      /* TODO: what to use for OPENFILENAMEW??? */
Karsten Hopp 727940
!     fileStruct.lStructSize = sizeof(OPENFILENAME_SIZE_VERSION_400);
Karsten Hopp 727940
  #else
Karsten Hopp 727940
      fileStruct.lStructSize = sizeof(fileStruct);
Karsten Hopp 727940
  #endif
Karsten Hopp 727940
--- 3345,3351 ----
Karsten Hopp 727940
  #ifdef OPENFILENAME_SIZE_VERSION_400
Karsten Hopp 727940
      /* be compatible with Windows NT 4.0 */
Karsten Hopp 727940
      /* TODO: what to use for OPENFILENAMEW??? */
Karsten Hopp 727940
!     fileStruct.lStructSize = OPENFILENAME_SIZE_VERSION_400;
Karsten Hopp 727940
  #else
Karsten Hopp 727940
      fileStruct.lStructSize = sizeof(fileStruct);
Karsten Hopp 727940
  #endif
Karsten Hopp 727940
***************
Karsten Hopp 727940
*** 3506,3512 ****
Karsten Hopp 727940
      memset(&fileStruct, 0, sizeof(OPENFILENAME));
Karsten Hopp 727940
  #ifdef OPENFILENAME_SIZE_VERSION_400
Karsten Hopp 727940
      /* be compatible with Windows NT 4.0 */
Karsten Hopp 727940
!     fileStruct.lStructSize = sizeof(OPENFILENAME_SIZE_VERSION_400);
Karsten Hopp 727940
  #else
Karsten Hopp 727940
      fileStruct.lStructSize = sizeof(fileStruct);
Karsten Hopp 727940
  #endif
Karsten Hopp 727940
--- 3506,3512 ----
Karsten Hopp 727940
      memset(&fileStruct, 0, sizeof(OPENFILENAME));
Karsten Hopp 727940
  #ifdef OPENFILENAME_SIZE_VERSION_400
Karsten Hopp 727940
      /* be compatible with Windows NT 4.0 */
Karsten Hopp 727940
!     fileStruct.lStructSize = OPENFILENAME_SIZE_VERSION_400;
Karsten Hopp 727940
  #else
Karsten Hopp 727940
      fileStruct.lStructSize = sizeof(fileStruct);
Karsten Hopp 727940
  #endif
Karsten Hopp 727940
*** ../vim-7.2.364/src/version.c	2010-02-17 17:24:23.000000000 +0100
Karsten Hopp 727940
--- src/version.c	2010-02-17 17:31:54.000000000 +0100
Karsten Hopp 727940
***************
Karsten Hopp 727940
*** 683,684 ****
Karsten Hopp 727940
--- 683,686 ----
Karsten Hopp 727940
  {   /* Add new patch number below this line */
Karsten Hopp 727940
+ /**/
Karsten Hopp 727940
+     365,
Karsten Hopp 727940
  /**/
Karsten Hopp 727940
Karsten Hopp 727940
Karsten Hopp 727940
-- 
Karsten Hopp 727940
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 727940
246. You use up your free 100 hours in less than a week.
Karsten Hopp 727940
Karsten Hopp 727940
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 727940
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 727940
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 727940
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///