Ken Takata wrote:
> I found that gui_mch_browseW() uses a wrong struct size. It uses a size for
> ANSI API instead of Wide API. Here is a patch:
>
> --- a/src/gui_w32.c
> +++ b/src/gui_w32.c
> @@ -3710,10 +3710,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
Thanks!
--
hundred-and-one symptoms of being an internet addict:
49. You never have to deal with busy signals when calling your ISP...because
you never log off.
/// Bram Moolenaar -- [email protected] -- 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 ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.