Commit d69745ff authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

ole32/tests: Write-strings warning fix.

parent 101e9e64
......@@ -261,6 +261,7 @@ static void testCodepage(void)
{
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 @@ static void testCodepage(void)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment