[PATCH] shell32: Use the ARRAY_SIZE() macro
Michael Stefaniuc
mstefani at winehq.org
Thu Nov 15 13:42:19 CST 2018
Signed-off-by: Michael Stefaniuc <mstefani at 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
More information about the wine-devel
mailing list