Paul Vriens : ole32/tests: Cast-qual warnings fixes.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jan 12 05:39:09 CST 2007


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

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Fri Jan 12 08:04:35 2007 +0100

ole32/tests: Cast-qual warnings fixes.

---

 dlls/ole32/tests/propvariant.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/ole32/tests/propvariant.c b/dlls/ole32/tests/propvariant.c
index c811eaa..f1cbc76 100644
--- a/dlls/ole32/tests/propvariant.c
+++ b/dlls/ole32/tests/propvariant.c
@@ -199,8 +199,8 @@ static void test_validtypes(void)
 
 static void test_copy(void)
 {
-    static const char szTestString[] = "Test String";
-    static const WCHAR wszTestString[] = {'T','e','s','t',' ','S','t','r','i','n','g',0};
+    static char szTestString[] = "Test String";
+    static WCHAR wszTestString[] = {'T','e','s','t',' ','S','t','r','i','n','g',0};
     PROPVARIANT propvarSrc;
     PROPVARIANT propvarDst;
     HRESULT hr;
@@ -217,7 +217,7 @@ static void test_copy(void)
     ok(hr == S_OK, "PropVariantClear(...VT_BSTR...) failed\n");
 
     propvarSrc.vt = VT_LPWSTR;
-    U(propvarSrc).pwszVal = (LPWSTR)wszTestString;
+    U(propvarSrc).pwszVal = wszTestString;
     hr = PropVariantCopy(&propvarDst, &propvarSrc);
     ok(hr == S_OK, "PropVariantCopy(...VT_LPWSTR...) failed\n");
     ok(!lstrcmpW(U(propvarSrc).pwszVal, U(propvarDst).pwszVal), "Wide string not copied properly\n");
@@ -226,7 +226,7 @@ static void test_copy(void)
     memset(&propvarSrc, 0, sizeof(propvarSrc));
 
     propvarSrc.vt = VT_LPSTR;
-    U(propvarSrc).pszVal = (LPSTR)szTestString;
+    U(propvarSrc).pszVal = szTestString;
     hr = PropVariantCopy(&propvarDst, &propvarSrc);
     ok(hr == S_OK, "PropVariantCopy(...VT_LPSTR...) failed\n");
     ok(!strcmp(U(propvarSrc).pszVal, U(propvarDst).pszVal), "String not copied properly\n");




More information about the wine-cvs mailing list