diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-15 18:09:57 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-15 18:09:57 +0100 |
commit | 89e375a88f3eceb73bbd97e78aca1a1c4647c897 (patch) | |
tree | 4875fb49ca6bc9a6cfd5c1c277f148f853f32e21 | |
parent | 8067a64852d6d134b493c5674e404225ed4bbe7d (diff) | |
download | vim-git-89e375a88f3eceb73bbd97e78aca1a1c4647c897.tar.gz |
patch 7.4.1575v7.4.1575
Problem: Using wrong size for struct.
Solution: Use the size for wide API. (Ken Takata)
-rw-r--r-- | src/gui_w32.c | 5 | ||||
-rw-r--r-- | 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 @@ -744,6 +744,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1575, +/**/ 1574, /**/ 1573, |