Michael Stefaniuc : notepad: Use the available ARRAY_SIZE() macro.

Alexandre Julliard julliard at winehq.org
Wed May 23 15:52:04 CDT 2018


Module: wine
Branch: master
Commit: d98be23eaba1cd49a2d0733581266b233f6e52d4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d98be23eaba1cd49a2d0733581266b233f6e52d4

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Wed May 23 00:41:53 2018 +0200

notepad: Use the available ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/notepad/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/notepad/main.c b/programs/notepad/main.c
index 6f567a9..da39eec 100644
--- a/programs/notepad/main.c
+++ b/programs/notepad/main.c
@@ -76,7 +76,7 @@ VOID SetFileNameAndEncoding(LPCWSTR szFileName, ENCODING enc)
 {
     lstrcpyW(Globals.szFileName, szFileName);
     Globals.szFileTitle[0] = 0;
-    GetFileTitleW(szFileName, Globals.szFileTitle, sizeof(Globals.szFileTitle) / sizeof(WCHAR));
+    GetFileTitleW(szFileName, Globals.szFileTitle, ARRAY_SIZE(Globals.szFileTitle));
     Globals.encFile = enc;
 }
 




More information about the wine-cvs mailing list