Michael Stefaniuc : advapi32/tests: Use the available ARRAY_SIZE() macro.

Alexandre Julliard julliard at winehq.org
Tue May 29 16:08:29 CDT 2018


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Tue May 29 01:05:20 2018 +0200

advapi32/tests: Use the available ARRAY_SIZE() macro.

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

---

 dlls/advapi32/tests/lsa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/advapi32/tests/lsa.c b/dlls/advapi32/tests/lsa.c
index 861fea0..451bee9 100644
--- a/dlls/advapi32/tests/lsa.c
+++ b/dlls/advapi32/tests/lsa.c
@@ -120,7 +120,7 @@ static void test_lsa(void)
                 UINT len;
                 guidstrW[0] = '\0';
                 ConvertSidToStringSidA(dns_domain_info->Sid, &strsid);
-                StringFromGUID2(&dns_domain_info->DomainGuid, guidstrW, sizeof(guidstrW)/sizeof(WCHAR));
+                StringFromGUID2(&dns_domain_info->DomainGuid, guidstrW, ARRAY_SIZE(guidstrW));
                 len = WideCharToMultiByte( CP_ACP, 0, guidstrW, -1, NULL, 0, NULL, NULL );
                 guidstr = LocalAlloc( 0, len );
                 WideCharToMultiByte( CP_ACP, 0, guidstrW, -1, guidstr, len, NULL, NULL );




More information about the wine-cvs mailing list