Michael Stefaniuc : shell32/tests: Avoid sizeof in a trace.

Alexandre Julliard julliard at winehq.org
Fri Jun 15 15:41:00 CDT 2018


Module: wine
Branch: master
Commit: d46205a3404980692e98733b922058797dfd20bd
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d46205a3404980692e98733b922058797dfd20bd

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Fri Jun 15 00:04:41 2018 +0200

shell32/tests: Avoid sizeof in a trace.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/shell32/tests/shelldispatch.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/shell32/tests/shelldispatch.c b/dlls/shell32/tests/shelldispatch.c
index cc00757..ed109a9 100644
--- a/dlls/shell32/tests/shelldispatch.c
+++ b/dlls/shell32/tests/shelldispatch.c
@@ -541,8 +541,7 @@ static void test_items(void)
     count = -1;
     r = FolderItems_get_Count(items, &count);
     ok(r == S_OK, "FolderItems::get_Count failed: %08x\n", r);
-    ok(count == sizeof(file_defs)/sizeof(file_defs[0]),
-       "expected %d files, got %d\n", (LONG)(sizeof(file_defs)/sizeof(file_defs[0])), count);
+    ok(count == ARRAY_SIZE(file_defs), "got %d files\n", count);
 
     V_VT(&var) = VT_EMPTY;
     item = (FolderItem*)0xdeadbeef;




More information about the wine-cvs mailing list