Mike McCormack : ole32: Fix conformance test to compile with MSVC6.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 12 06:53:41 CDT 2006


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

Author: Mike McCormack <mike at codeweavers.com>
Date:   Wed Jul 12 14:53:57 2006 +0900

ole32: Fix conformance test to compile with MSVC6.

---

 dlls/ole32/tests/stg_prop.c  |    8 ++++++--
 dlls/ole32/tests/storage32.c |    5 ++---
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/dlls/ole32/tests/stg_prop.c b/dlls/ole32/tests/stg_prop.c
index 5cd8879..19fd593 100644
--- a/dlls/ole32/tests/stg_prop.c
+++ b/dlls/ole32/tests/stg_prop.c
@@ -20,6 +20,10 @@ #define COBJMACROS
 #include "objbase.h"
 #include "wine/test.h"
 
+#ifndef PID_BEHAVIOR
+#define PID_BEHAVIOR 0x80000003
+#endif
+
 static HRESULT (WINAPI *pFmtIdToPropStgName)(const FMTID *, LPOLESTR);
 static HRESULT (WINAPI *pPropStgNameToFmtId)(const LPOLESTR, FMTID *);
 static HRESULT (WINAPI *pStgCreatePropSetStg)(IStorage *, DWORD, IPropertySetStorage **);
@@ -391,7 +395,7 @@ static void testCodepage(void)
      * obviously something about string conversion I don't understand.
      */
     if(0) {
-    static const char strVal[] = { 0x81, 0xff, 0x04, 0 };
+    static const unsigned char strVal[] = { 0x81, 0xff, 0x04, 0 };
     /* Set code page to 950 (Traditional Chinese) */
     U(var).iVal = 950;
     hr = IPropertyStorage_WriteMultiple(propertyStorage, 1, &spec, &var, 0);
@@ -408,7 +412,7 @@ static void testCodepage(void)
     /* Check returned string */
     hr = IPropertyStorage_ReadMultiple(propertyStorage, 1, &spec, &var);
     ok(SUCCEEDED(hr), "ReadMultiple failed: 0x%08lx\n", hr);
-    ok(var.vt == VT_LPSTR && !strcmp(U(var).pszVal, strVal),
+    ok(var.vt == VT_LPSTR && !strcmp(U(var).pszVal, (LPCSTR)strVal),
      "Didn't get expected type or value for property\n");
     }
 
diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c
index f1fda2c..d4ed369 100644
--- a/dlls/ole32/tests/storage32.c
+++ b/dlls/ole32/tests/storage32.c
@@ -22,10 +22,9 @@ #include <stdio.h>
 
 #define COBJMACROS
 
+#include <windows.h>
 #include "wine/test.h"
-#include "windef.h"
-#include "winbase.h"
-#include "winerror.h"
+
 #include "ole2.h"
 #include "objidl.h"
 #include "initguid.h"




More information about the wine-cvs mailing list