ole32/tests: Write-strings warning fix

Andrew Talbot Andrew.Talbot at talbotville.com
Thu Jun 22 13:23:13 CDT 2006


Changelog:
    ole32/tests: Write-strings warning fix.

diff -urN a/dlls/ole32/tests/stg_prop.c b/dlls/ole32/tests/stg_prop.c
--- a/dlls/ole32/tests/stg_prop.c	2006-05-23 17:24:45.000000000 +0100
+++ b/dlls/ole32/tests/stg_prop.c	2006-06-22 19:14:40.000000000 +0100
@@ -261,6 +261,7 @@
 {
     static const WCHAR szDot[] = { '.',0 };
     static const WCHAR szPrefix[] = { 's','t','g',0 };
+    static CHAR aval[] = "hi";
     static const WCHAR wval[] = { 'h','i',0 };
     HRESULT hr;
     IStorage *storage = NULL;
@@ -323,7 +324,7 @@
     spec.ulKind = PRSPEC_PROPID;
     U(spec).propid = PID_FIRST_USABLE;
     var.vt = VT_LPSTR;
-    U(var).pszVal = "hi";
+    U(var).pszVal = aval;
     hr = IPropertyStorage_WriteMultiple(propertyStorage, 1, &spec, &var, 0);
     ok(SUCCEEDED(hr), "WriteMultiple failed: 0x%08lx\n", hr);
     hr = IPropertyStorage_ReadMultiple(propertyStorage, 1, &spec, &var);



More information about the wine-patches mailing list