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 /src/gui_w32.c | |
parent | 8067a64852d6d134b493c5674e404225ed4bbe7d (diff) |
patch 7.4.1575v7.4.1575
Problem: Using wrong size for struct.
Solution: Use the size for wide API. (Ken Takata)
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r-- | src/gui_w32.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index 6cc2e06988..b2ee9ca641 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 |