]> granicus.if.org Git - vim/commitdiff
patch 7.4.1575 v7.4.1575
authorBram Moolenaar <Bram@vim.org>
Tue, 15 Mar 2016 17:09:57 +0000 (18:09 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 15 Mar 2016 17:09:57 +0000 (18:09 +0100)
Problem:    Using wrong size for struct.
Solution:   Use the size for wide API. (Ken Takata)

src/gui_w32.c
src/version.c

index 6cc2e06988b3412d720a1d61dfbe8b53a2303b3e..b2ee9ca64132036d1d5f0e7cb1248160329921e2 100644 (file)
@@ -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
index 4779f7d876c9d23e43d36e1e6c6e5777edf89b32..4ac46b05d7ed3f818ee9bf7d6b7a3e5033e8c809 100644 (file)
@@ -743,6 +743,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1575,
 /**/
     1574,
 /**/