From 89e375a88f3eceb73bbd97e78aca1a1c4647c897 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 15 Mar 2016 18:09:57 +0100 Subject: [PATCH] patch 7.4.1575 Problem: Using wrong size for struct. Solution: Use the size for wide API. (Ken Takata) --- src/gui_w32.c | 5 ++--- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui_w32.c b/src/gui_w32.c index 6cc2e0698..b2ee9ca64 100644 --- 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 diff --git a/src/version.c b/src/version.c index 4779f7d87..4ac46b05d 100644 --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1575, /**/ 1574, /**/ -- 2.50.1