To: vim_dev@googlegroups.com Subject: Patch 7.4.1575 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1575 Problem: Using wrong size for struct. Solution: Use the size for wide API. (Ken Takata) Files: src/gui_w32.c *** ../vim-7.4.1574/src/gui_w32.c 2016-02-27 18:13:05.236593109 +0100 --- src/gui_w32.c 2016-03-15 18:06:35.891645179 +0100 *************** *** 3682,3691 **** filterp = convert_filterW(filter); vim_memset(&fileStruct, 0, sizeof(OPENFILENAMEW)); ! #ifdef OPENFILENAME_SIZE_VERSION_400 /* be compatible with Windows NT 4.0 */ ! /* TODO: what to use for OPENFILENAMEW??? */ ! fileStruct.lStructSize = OPENFILENAME_SIZE_VERSION_400; #else fileStruct.lStructSize = sizeof(fileStruct); #endif --- 3682,3690 ---- filterp = convert_filterW(filter); vim_memset(&fileStruct, 0, sizeof(OPENFILENAMEW)); ! #ifdef OPENFILENAME_SIZE_VERSION_400W /* be compatible with Windows NT 4.0 */ ! fileStruct.lStructSize = OPENFILENAME_SIZE_VERSION_400W; #else fileStruct.lStructSize = sizeof(fileStruct); #endif *** ../vim-7.4.1574/src/version.c 2016-03-15 17:43:51.633786581 +0100 --- src/version.c 2016-03-15 18:07:41.178968552 +0100 *************** *** 745,746 **** --- 745,748 ---- { /* Add new patch number below this line */ + /**/ + 1575, /**/ -- CVS sux, men don't like commitment /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///