[PATCH] winspool.drv/tests: Use the available ARRAY_SIZE() macro
Michael Stefaniuc
mstefani at winehq.org
Mon May 28 18:05:28 CDT 2018
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/winspool.drv/tests/info.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c
index 3c28bc0e84..bfc80ce0f6 100644
--- a/dlls/winspool.drv/tests/info.c
+++ b/dlls/winspool.drv/tests/info.c
@@ -219,7 +219,7 @@ static struct monitor_entry * find_installed_monitor(void)
if (entry) return entry;
- num_tests = (sizeof(monitor_table)/sizeof(struct monitor_entry));
+ num_tests = ARRAY_SIZE(monitor_table);
/* cleanup */
DeleteMonitorA(NULL, env_x64, winetest);
--
2.14.3
More information about the wine-devel
mailing list