0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1575

Problem:    Using wrong size for struct.
Solution:   Use the size for wide API. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2016-03-15 18:09:57 +01:00
parent 8067a64852
commit 89e375a88f
2 changed files with 4 additions and 3 deletions

View File

@@ -3682,10 +3682,9 @@ gui_mch_browseW(
filterp = convert_filterW(filter); filterp = convert_filterW(filter);
vim_memset(&fileStruct, 0, sizeof(OPENFILENAMEW)); vim_memset(&fileStruct, 0, sizeof(OPENFILENAMEW));
#ifdef OPENFILENAME_SIZE_VERSION_400 #ifdef OPENFILENAME_SIZE_VERSION_400W
/* be compatible with Windows NT 4.0 */ /* be compatible with Windows NT 4.0 */
/* TODO: what to use for OPENFILENAMEW??? */ fileStruct.lStructSize = OPENFILENAME_SIZE_VERSION_400W;
fileStruct.lStructSize = OPENFILENAME_SIZE_VERSION_400;
#else #else
fileStruct.lStructSize = sizeof(fileStruct); fileStruct.lStructSize = sizeof(fileStruct);
#endif #endif

View File

@@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1575,
/**/ /**/
1574, 1574,
/**/ /**/