[PATCH] dpnet: Use the ARRAY_SIZE() macro
20 Jul
2018
20 Jul
'18
7:45 p.m.
Signed-off-by: Michael Stefaniuc <mstefani(a)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
2704
Age (days ago)
2705
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alistair Leslie-Hughes -
Michael Stefaniuc