Michael Stefaniuc : dmsynth: Use the ARRAY_SIZE() macro.
Alexandre Julliard
julliard at winehq.org
Tue Oct 23 16:10:03 CDT 2018
Module: wine
Branch: master
Commit: eb2e0d9fbe093f4783b91b9ffe1941a8301bcda8
URL: https://source.winehq.org/git/wine.git/?a=commit;h=eb2e0d9fbe093f4783b91b9ffe1941a8301bcda8
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Tue Oct 23 19:42:33 2018 +0200
dmsynth: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dmsynth/dmsynth_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dmsynth/dmsynth_main.c b/dlls/dmsynth/dmsynth_main.c
index 1fb5157..9568cb6 100644
--- a/dlls/dmsynth/dmsynth_main.c
+++ b/dlls/dmsynth/dmsynth_main.c
@@ -360,7 +360,7 @@ const char *debugstr_dmguid (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;
}
More information about the wine-cvs
mailing list