propsys/tests: Fix some ok() messages.
Signed-off-by: Sven Baars <sven.wine@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
818838b707
commit
7117219b3d
|
@ -1485,13 +1485,13 @@ static void test_PropVariantToBuffer(void)
|
||||||
UINT8 buffer[256];
|
UINT8 buffer[256];
|
||||||
|
|
||||||
hr = InitPropVariantFromBuffer(data, 10, &propvar);
|
hr = InitPropVariantFromBuffer(data, 10, &propvar);
|
||||||
ok(hr == S_OK, "InitVariantFromBuffer failed 0x%08x.\n", hr);
|
ok(hr == S_OK, "InitPropVariantFromBuffer failed 0x%08x.\n", hr);
|
||||||
hr = PropVariantToBuffer(&propvar, NULL, 0); /* crash when cb isn't zero */
|
hr = PropVariantToBuffer(&propvar, NULL, 0); /* crash when cb isn't zero */
|
||||||
ok(hr == S_OK, "PropVariantToBuffer failed: 0x%08x.\n", hr);
|
ok(hr == S_OK, "PropVariantToBuffer failed: 0x%08x.\n", hr);
|
||||||
PropVariantClear(&propvar);
|
PropVariantClear(&propvar);
|
||||||
|
|
||||||
hr = InitPropVariantFromBuffer(data, 10, &propvar);
|
hr = InitPropVariantFromBuffer(data, 10, &propvar);
|
||||||
ok(hr == S_OK, "InitVariantFromBuffer failed 0x%08x.\n", hr);
|
ok(hr == S_OK, "InitPropVariantFromBuffer failed 0x%08x.\n", hr);
|
||||||
hr = PropVariantToBuffer(&propvar, buffer, 10);
|
hr = PropVariantToBuffer(&propvar, buffer, 10);
|
||||||
ok(hr == S_OK, "PropVariantToBuffer failed: 0x%08x.\n", hr);
|
ok(hr == S_OK, "PropVariantToBuffer failed: 0x%08x.\n", hr);
|
||||||
ok(!memcmp(buffer, data, 10) && !buffer[10], "got wrong buffer.\n");
|
ok(!memcmp(buffer, data, 10) && !buffer[10], "got wrong buffer.\n");
|
||||||
|
@ -1499,7 +1499,7 @@ static void test_PropVariantToBuffer(void)
|
||||||
PropVariantClear(&propvar);
|
PropVariantClear(&propvar);
|
||||||
|
|
||||||
hr = InitPropVariantFromBuffer(data, 10, &propvar);
|
hr = InitPropVariantFromBuffer(data, 10, &propvar);
|
||||||
ok(hr == S_OK, "InitVariantFromBuffer failed 0x%08x.\n", hr);
|
ok(hr == S_OK, "InitPropVariantFromBuffer failed 0x%08x.\n", hr);
|
||||||
buffer[0] = 99;
|
buffer[0] = 99;
|
||||||
hr = PropVariantToBuffer(&propvar, buffer, 11);
|
hr = PropVariantToBuffer(&propvar, buffer, 11);
|
||||||
ok(hr == E_FAIL, "PropVariantToBuffer returned: 0x%08x.\n", hr);
|
ok(hr == E_FAIL, "PropVariantToBuffer returned: 0x%08x.\n", hr);
|
||||||
|
@ -1508,7 +1508,7 @@ static void test_PropVariantToBuffer(void)
|
||||||
PropVariantClear(&propvar);
|
PropVariantClear(&propvar);
|
||||||
|
|
||||||
hr = InitPropVariantFromBuffer(data, 10, &propvar);
|
hr = InitPropVariantFromBuffer(data, 10, &propvar);
|
||||||
ok(hr == S_OK, "InitVariantFromBuffer failed 0x%08x.\n", hr);
|
ok(hr == S_OK, "InitPropVariantFromBuffer failed 0x%08x.\n", hr);
|
||||||
hr = PropVariantToBuffer(&propvar, buffer, 9);
|
hr = PropVariantToBuffer(&propvar, buffer, 9);
|
||||||
ok(hr == S_OK, "PropVariantToBuffer failed: 0x%08x.\n", hr);
|
ok(hr == S_OK, "PropVariantToBuffer failed: 0x%08x.\n", hr);
|
||||||
ok(!memcmp(buffer, data, 9) && !buffer[9], "got wrong buffer.\n");
|
ok(!memcmp(buffer, data, 9) && !buffer[9], "got wrong buffer.\n");
|
||||||
|
|
Loading…
Reference in New Issue