FILEDLG_MapOfnStructA bug?

Dmitry Timoshkov dmitry at baikal.ru
Sat Apr 24 08:31:20 CDT 2004


"Francois Gouget" <fgouget at free.fr> wrote:

> -static char defaultopen[]="Open File";
> -static char defaultsave[]="Save as";
> 
>  /***********************************************************************
>   * FileDlg_Init [internal]
> @@ -970,9 +968,13 @@
>      if (ofnA->lpstrTitle)
>          str = ofnA->lpstrTitle;
>      else
> +    {
>          /* Allocates default title (FIXME : get it from resource) */
> +        static const char* defaultopen="Open File";
> +        static const char* defaultsave="Save as";

Don't you really want to leave it as a static const array of characters
as before and not a static const pointer? Same for your next patch.

-- 
Dmitry.




More information about the wine-devel mailing list