Skip to content

Commit 89e375a

Browse files
committed
patch 7.4.1575
Problem: Using wrong size for struct. Solution: Use the size for wide API. (Ken Takata)
1 parent 8067a64 commit 89e375a

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/gui_w32.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3682,10 +3682,9 @@ gui_mch_browseW(
36823682
filterp = convert_filterW(filter);
36833683

36843684
vim_memset(&fileStruct, 0, sizeof(OPENFILENAMEW));
3685-
#ifdef OPENFILENAME_SIZE_VERSION_400
3685+
#ifdef OPENFILENAME_SIZE_VERSION_400W
36863686
/* be compatible with Windows NT 4.0 */
3687-
/* TODO: what to use for OPENFILENAMEW??? */
3688-
fileStruct.lStructSize = OPENFILENAME_SIZE_VERSION_400;
3687+
fileStruct.lStructSize = OPENFILENAME_SIZE_VERSION_400W;
36893688
#else
36903689
fileStruct.lStructSize = sizeof(fileStruct);
36913690
#endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1575,
746748
/**/
747749
1574,
748750
/**/

0 commit comments

Comments
 (0)