Michael Stefaniuc : ole32/tests: Use the ARRAY_SIZE() macro.

Alexandre Julliard julliard at winehq.org
Thu Nov 15 16:43:27 CST 2018


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Nov 15 20:42:16 2018 +0100

ole32/tests: Use the ARRAY_SIZE() macro.

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

---

 dlls/ole32/tests/usrmarshal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ole32/tests/usrmarshal.c b/dlls/ole32/tests/usrmarshal.c
index 3919395..bbe7fb5 100644
--- a/dlls/ole32/tests/usrmarshal.c
+++ b/dlls/ole32/tests/usrmarshal.c
@@ -1067,7 +1067,7 @@ static void test_marshal_SNB(void)
     ok(*(ULONG*)wiresnb->rgString == wiresnb->ulCntStr, "got %u\n", *(ULONG*)wiresnb->rgString);
     dataW = &wiresnb->rgString[2];
     ok(!lstrcmpW(dataW, str1W), "marshalled string 0: %s\n", wine_dbgstr_w(dataW));
-    dataW += sizeof(str1W)/sizeof(WCHAR);
+    dataW += ARRAY_SIZE(str1W);
     ok(!lstrcmpW(dataW, str2W), "marshalled string 1: %s\n", wine_dbgstr_w(dataW));
 
     init_user_marshal_cb(&umcb, &stub_msg, &rpc_msg, buffer, size, MSHCTX_LOCAL);




More information about the wine-cvs mailing list