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

Alexandre Julliard julliard at winehq.org
Fri Jun 22 18:32:38 CDT 2018


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Fri Jun 22 19:50:39 2018 +0200

crypt32: 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/crypt32/chain.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index dd3fc33..6e8076c 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -738,8 +738,7 @@ static BOOL url_matches(LPCWSTR constraint, LPCWSTR name,
         /* Ignore any path or query portion of the URL. */
         if (*authority_end)
         {
-            if (authority_end - name < sizeof(hostname_buf) /
-             sizeof(hostname_buf[0]))
+            if (authority_end - name < ARRAY_SIZE(hostname_buf))
             {
                 memcpy(hostname_buf, name,
                  (authority_end - name) * sizeof(WCHAR));




More information about the wine-cvs mailing list