[PATCH] dpnet: Use the ARRAY_SIZE() macro

Michael Stefaniuc mstefani at winehq.org
Fri Jul 20 14:45:48 CDT 2018


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

diff --git a/dlls/dpnet/address.c b/dlls/dpnet/address.c
index 4d55caa47e..0bfa2bca03 100644
--- a/dlls/dpnet/address.c
+++ b/dlls/dpnet/address.c
@@ -150,7 +150,7 @@ static const char *debugstr_SP(const GUID *id) {
 
   if (!id) return "(null)";
 
-  for (i = 0; i < sizeof(guids)/sizeof(guids[0]); i++) {
+  for (i = 0; i < ARRAY_SIZE(guids); i++) {
     if (IsEqualGUID(id, guids[i].guid))
       return guids[i].name;
   }
-- 
2.14.4




More information about the wine-devel mailing list