Commit 9bdcfc5d authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

atl: Avoid harcoding array lengths.

parent 936d5351
...@@ -1211,7 +1211,7 @@ static LPDLGTEMPLATEW AX_ConvertDialogTemplate(LPCDLGTEMPLATEW src_tmpl) ...@@ -1211,7 +1211,7 @@ static LPDLGTEMPLATEW AX_ConvertDialogTemplate(LPCDLGTEMPLATEW src_tmpl)
src += strlenW(src) + 1; /* title */ src += strlenW(src) + 1; /* title */
if ( GET_WORD(tmp) == '{' ) /* all this mess created because of this line */ if ( GET_WORD(tmp) == '{' ) /* all this mess created because of this line */
{ {
static const WCHAR AtlAxWin[9]={'A','t','l','A','x','W','i','n',0}; static const WCHAR AtlAxWin[] = {'A','t','l','A','x','W','i','n', 0};
PUT_BLOCK(AtlAxWin, sizeof(AtlAxWin)/sizeof(WCHAR)); PUT_BLOCK(AtlAxWin, sizeof(AtlAxWin)/sizeof(WCHAR));
PUT_BLOCK(tmp, strlenW(tmp)+1); PUT_BLOCK(tmp, strlenW(tmp)+1);
} else } else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment