[PATCH] qmgr: Use the ARRAY_SIZE() macro

Michael Stefaniuc mstefani at winehq.org
Wed Aug 8 04:30:14 CDT 2018


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/qmgr/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/qmgr/file.c b/dlls/qmgr/file.c
index 3673ede142..dbdfc97bcc 100644
--- a/dlls/qmgr/file.c
+++ b/dlls/qmgr/file.c
@@ -518,7 +518,7 @@ BOOL processFile(BackgroundCopyFileImpl *file, BackgroundCopyJobImpl *job)
     uc.lpszPassword      = NULL;
     uc.dwPasswordLength  = 0;
     uc.lpszHostName      = host;
-    uc.dwHostNameLength  = sizeof(host)/sizeof(host[0]);
+    uc.dwHostNameLength  = ARRAY_SIZE(host);
     uc.nPort             = 0;
     uc.lpszUrlPath       = NULL;
     uc.dwUrlPathLength   = ~0u;
-- 
2.14.4




More information about the wine-devel mailing list