[PATCH] shell32: Use the ARRAY_SIZE() macro
15 Nov
2018
15 Nov
'18
1:42 p.m.
Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> --- dlls/shell32/shlexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c index 1e795ac928..aca02d7488 100644 --- a/dlls/shell32/shlexec.c +++ b/dlls/shell32/shlexec.c @@ -823,7 +823,7 @@ static unsigned dde_connect(const WCHAR* key, const WCHAR* start, WCHAR* ddeexec { WCHAR command[1024], fullpath[MAX_PATH]; static const WCHAR wSo[] = { '.','s','o',0 }; - int sizeSo = sizeof(wSo)/sizeof(WCHAR); + int sizeSo = ARRAY_SIZE(wSo); LPWSTR ptr = NULL; DWORD ret = 0; -- 2.14.5
2584
Age (days ago)
2584
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michael Stefaniuc