ole32/tests: Write-strings warning fix.
This commit is contained in:
parent
101e9e64e6
commit
d69745ff7a
|
@ -261,6 +261,7 @@ static void testCodepage(void)
|
||||||
{
|
{
|
||||||
static const WCHAR szDot[] = { '.',0 };
|
static const WCHAR szDot[] = { '.',0 };
|
||||||
static const WCHAR szPrefix[] = { 's','t','g',0 };
|
static const WCHAR szPrefix[] = { 's','t','g',0 };
|
||||||
|
static CHAR aval[] = "hi";
|
||||||
static const WCHAR wval[] = { 'h','i',0 };
|
static const WCHAR wval[] = { 'h','i',0 };
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
IStorage *storage = NULL;
|
IStorage *storage = NULL;
|
||||||
|
@ -323,7 +324,7 @@ static void testCodepage(void)
|
||||||
spec.ulKind = PRSPEC_PROPID;
|
spec.ulKind = PRSPEC_PROPID;
|
||||||
U(spec).propid = PID_FIRST_USABLE;
|
U(spec).propid = PID_FIRST_USABLE;
|
||||||
var.vt = VT_LPSTR;
|
var.vt = VT_LPSTR;
|
||||||
U(var).pszVal = "hi";
|
U(var).pszVal = aval;
|
||||||
hr = IPropertyStorage_WriteMultiple(propertyStorage, 1, &spec, &var, 0);
|
hr = IPropertyStorage_WriteMultiple(propertyStorage, 1, &spec, &var, 0);
|
||||||
ok(SUCCEEDED(hr), "WriteMultiple failed: 0x%08lx\n", hr);
|
ok(SUCCEEDED(hr), "WriteMultiple failed: 0x%08lx\n", hr);
|
||||||
hr = IPropertyStorage_ReadMultiple(propertyStorage, 1, &spec, &var);
|
hr = IPropertyStorage_ReadMultiple(propertyStorage, 1, &spec, &var);
|
||||||
|
|
Loading…
Reference in New Issue