Michael Stefaniuc : mlang/tests: Simplify the "pointer to start of array" idiom.

Alexandre Julliard julliard at winehq.org
Thu Jul 26 15:34:57 CDT 2012


Module: wine
Branch: master
Commit: 3a51439fc9036729ebc4b45d146985c9a05263c9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3a51439fc9036729ebc4b45d146985c9a05263c9

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Jul 26 11:23:34 2012 +0200

mlang/tests: Simplify the "pointer to start of array" idiom.

---

 dlls/mlang/tests/mlang.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/mlang/tests/mlang.c b/dlls/mlang/tests/mlang.c
index 7ff4ec3..91463f9 100644
--- a/dlls/mlang/tests/mlang.c
+++ b/dlls/mlang/tests/mlang.c
@@ -677,7 +677,7 @@ static void test_EnumCodePages(IMultiLanguage2 *iML2, DWORD flags)
     n = 0;
     ret = IEnumCodePage_Next(iEnumCP, 1, &cpinfo2, &n);
     ok(n == 1 && ret == S_OK, "IEnumCodePage_Next: expected 1/S_OK, got %u/%08x\n", n, ret);
-    cpinfo_cmp(&cpinfo[0], &cpinfo2);
+    cpinfo_cmp(cpinfo, &cpinfo2);
 
     if (0)
     {
@@ -782,7 +782,7 @@ static void test_EnumScripts(IMultiLanguage2 *iML2, DWORD flags)
     n = 0;
     ret = IEnumScript_Next(iEnumScript, 1, &sinfo2, &n);
     ok(n == 1 && ret == S_OK, "IEnumScript_Next: expected 1/S_OK, got %u/%08x\n", n, ret);
-    scriptinfo_cmp(&sinfo[0], &sinfo2);
+    scriptinfo_cmp(sinfo, &sinfo2);
 
     if (0)
     {
@@ -861,7 +861,7 @@ static void IMLangFontLink_Test(IMLangFontLink* iMLFL)
 
     dwCodePages = 0;
     processed = 0;
-    ret = IMLangFontLink_GetStrCodePages(iMLFL, &str[0], 1, 0, &dwCodePages, &processed);
+    ret = IMLangFontLink_GetStrCodePages(iMLFL, str, 1, 0, &dwCodePages, &processed);
     ok(ret == S_OK, "IMLangFontLink_GetStrCodePages error %x\n", ret);
     ok(dwCodePages == dwCmpCodePages, "expected %x, got %x\n", dwCmpCodePages, dwCodePages);
     ok(processed == 1, "expected 1, got %d\n", processed);




More information about the wine-cvs mailing list