Michael Stefaniuc : oleaut32/tests: Propagate the const instead of casting it away.

Alexandre Julliard julliard at winehq.org
Mon Feb 18 15:43:30 CST 2019


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Fri Feb 15 23:08:15 2019 +0100

oleaut32/tests: Propagate the const instead of casting it away.

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

---

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

diff --git a/dlls/oleaut32/tests/typelib.c b/dlls/oleaut32/tests/typelib.c
index 857100e..ef0c32c 100644
--- a/dlls/oleaut32/tests/typelib.c
+++ b/dlls/oleaut32/tests/typelib.c
@@ -4807,7 +4807,7 @@ static void test_dump_typelib(const char *name)
 
         for (func = 0; func < typeattr->cFuncs; func++)
         {
-            function_info *fn_info = (function_info *)&ti->funcs[func];
+            const function_info *fn_info = &ti->funcs[func];
             FUNCDESC *desc;
             BSTR namesTab[256];
             UINT cNames;




More information about the wine-cvs mailing list