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