Module: wine Branch: refs/heads/master Commit: d69745ff7abae0ac31b7828f0e1ea446a5325d83 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d69745ff7abae0ac31b7828f...
Author: Andrew Talbot Andrew.Talbot@talbotville.com Date: Thu Jun 22 19:23:13 2006 +0100
ole32/tests: Write-strings warning fix.
---
dlls/ole32/tests/stg_prop.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/tests/stg_prop.c b/dlls/ole32/tests/stg_prop.c index 66825c9..5cd8879 100644 --- a/dlls/ole32/tests/stg_prop.c +++ b/dlls/ole32/tests/stg_prop.c @@ -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);