Eric Pouech : comctl32/tests: Use correct integral type.

Alexandre Julliard julliard at winehq.org
Thu Feb 24 15:33:41 CST 2022


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

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Thu Feb 24 11:26:47 2022 +0100

comctl32/tests: Use correct integral type.

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/comctl32/tests/pager.c | 2 +-
 dlls/comctl32/tests/rebar.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/tests/pager.c b/dlls/comctl32/tests/pager.c
index a4d6a658cda..2ce964f8a27 100644
--- a/dlls/comctl32/tests/pager.c
+++ b/dlls/comctl32/tests/pager.c
@@ -1210,7 +1210,7 @@ static void test_wm_notify(void)
          DONT_CONVERT_SEND | DONT_CONVERT_RECEIVE},
         {&nmtbr, sizeof(nmtbr), NULL, 0, (WCHAR **)&nmtbr.tbButton.iString, NULL, TBN_RESTORE, TBN_RESTORE,
          DONT_CONVERT_SEND | DONT_CONVERT_RECEIVE},
-        {&nmtbdi, sizeof(nmtbdi), &nmtbdi.dwMask, TBNF_TEXT, &nmtbdi.pszText, &nmtbdi.cchText, TBN_GETDISPINFOW,
+        {&nmtbdi, sizeof(nmtbdi), (UINT*)&nmtbdi.dwMask, TBNF_TEXT, &nmtbdi.pszText, &nmtbdi.cchText, TBN_GETDISPINFOW,
          TBN_GETDISPINFOW, DONT_CONVERT_SEND | DONT_CONVERT_RECEIVE},
         {&nmtb, sizeof(nmtb), NULL, 0, &nmtb.pszText, &nmtb.cchText, TBN_GETBUTTONINFOW, TBN_GETBUTTONINFOA,
          SEND_EMPTY_IF_NULL | CONVERT_SEND | CONVERT_RECEIVE},
diff --git a/dlls/comctl32/tests/rebar.c b/dlls/comctl32/tests/rebar.c
index 63449d4d457..e868198b4d8 100644
--- a/dlls/comctl32/tests/rebar.c
+++ b/dlls/comctl32/tests/rebar.c
@@ -195,7 +195,7 @@ static int string_width(const CHAR *s) {
 
 typedef struct {
     RECT rc;
-    DWORD fStyle;
+    UINT fStyle;
     UINT cx;
 } rbband_result_t;
 




More information about the wine-cvs mailing list