"Francois Gouget" fgouget@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.