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