changeset 8571:debe6347024d v7.4.1575

commit https://github.com/vim/vim/commit/89e375a88f3eceb73bbd97e78aca1a1c4647c897 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 15 18:09:57 2016 +0100 patch 7.4.1575 Problem: Using wrong size for struct. Solution: Use the size for wide API. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Tue, 15 Mar 2016 18:15:04 +0100
parents 52b13e25b21d
children 3a9940e5a43c
files src/gui_w32.c src/version.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -3682,10 +3682,9 @@ gui_mch_browseW(
     filterp = convert_filterW(filter);
 
     vim_memset(&fileStruct, 0, sizeof(OPENFILENAMEW));
-#ifdef OPENFILENAME_SIZE_VERSION_400
+#ifdef OPENFILENAME_SIZE_VERSION_400W
     /* be compatible with Windows NT 4.0 */
-    /* TODO: what to use for OPENFILENAMEW??? */
-    fileStruct.lStructSize = OPENFILENAME_SIZE_VERSION_400;
+    fileStruct.lStructSize = OPENFILENAME_SIZE_VERSION_400W;
 #else
     fileStruct.lStructSize = sizeof(fileStruct);
 #endif
--- a/src/version.c
+++ b/src/version.c
@@ -744,6 +744,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1575,
+/**/
     1574,
 /**/
     1573,