=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: atl: Avoid harcoding array lengths.

Alexandre Julliard julliard at winehq.org
Thu Nov 17 12:52:34 CST 2011


Module: wine
Branch: master
Commit: 9bdcfc5d3e3a8a7a912bd43d63c4fdb60605813c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9bdcfc5d3e3a8a7a912bd43d63c4fdb60605813c

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Thu Nov 17 00:37:13 2011 +0100

atl: Avoid harcoding array lengths.

---

 dlls/atl/atl_ax.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/atl/atl_ax.c b/dlls/atl/atl_ax.c
index 9166aa0..c1b74f7 100644
--- a/dlls/atl/atl_ax.c
+++ b/dlls/atl/atl_ax.c
@@ -1211,7 +1211,7 @@ static LPDLGTEMPLATEW AX_ConvertDialogTemplate(LPCDLGTEMPLATEW src_tmpl)
         src += strlenW(src) + 1; /* title */
         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(tmp, strlenW(tmp)+1);
         } else




More information about the wine-cvs mailing list