From: Ziqing Hui zhui@codeweavers.com
--- dlls/propsys/tests/propsys.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/dlls/propsys/tests/propsys.c b/dlls/propsys/tests/propsys.c index 10d84e65f3e..0d13404a37e 100644 --- a/dlls/propsys/tests/propsys.c +++ b/dlls/propsys/tests/propsys.c @@ -1742,7 +1742,7 @@ static void test_PropVariantToBuffer(void) SAFEARRAY *sa; SAFEARRAYBOUND sabound; void *pdata; - UINT8 buffer[256]; + UINT8 buffer[256] = {0};
hr = InitPropVariantFromBuffer(data, 10, &propvar); ok(hr == S_OK, "InitPropVariantFromBuffer failed 0x%08lx.\n", hr); @@ -1755,6 +1755,15 @@ static void test_PropVariantToBuffer(void) hr = PropVariantToBuffer(&propvar, buffer, 10); ok(hr == S_OK, "PropVariantToBuffer failed: 0x%08lx.\n", hr); ok(!memcmp(buffer, data, 10) && !buffer[10], "got wrong buffer.\n"); + + { + int i; + fprintf(stderr, "buffer: \n{"); + for (i = 0; i < 11; i++) + fprintf(stderr, "%d, ", buffer[i]); + fprintf(stderr, "...}\n"); + } + memset(buffer, 0, sizeof(buffer)); PropVariantClear(&propvar);