Module: wine Branch: master Commit: 8bbba3fc707d66ee4eceac92145395e01b82bf95 URL: https://source.winehq.org/git/wine.git/?a=commit;h=8bbba3fc707d66ee4eceac921...
Author: Michael Stefaniuc mstefani@winehq.org Date: Tue May 29 01:05:28 2018 +0200
winspool.drv/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc mstefani@winehq.org Signed-off-by: Huw Davies huw@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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 3c28bc0..bfc80ce 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);