Commit b718b0b0 authored by Jakob Eriksson's avatar Jakob Eriksson Committed by Alexandre Julliard

StrRetToStrNAW returns ok on NT4, though it should return FALSE.

parent 665b9ca3
...@@ -88,12 +88,11 @@ static void test_StrRetToStringNW(void) ...@@ -88,12 +88,11 @@ static void test_StrRetToStringNW(void)
ok(ret == TRUE && !strcmpW(buff, szTestW), ok(ret == TRUE && !strcmpW(buff, szTestW),
"STRRET_OFFSET: dup failed, ret=%d\n", ret); "STRRET_OFFSET: dup failed, ret=%d\n", ret);
/* Invalid dest - returns FALSE */ /* Invalid dest - should return FALSE, except NT4 does not, so we don't check. */
strret.uType = STRRET_WSTR; strret.uType = STRRET_WSTR;
strret.u.pOleStr = CoDupStrW("Test"); strret.u.pOleStr = CoDupStrW("Test");
ret = pStrRetToStrNAW(NULL, sizeof(buff)/sizeof(WCHAR), &strret, NULL); pStrRetToStrNAW(NULL, sizeof(buff)/sizeof(WCHAR), &strret, NULL);
ok(ret == FALSE, "NULL dest: expected FALSE, ret=%d\n", ret); trace("NULL dest: ret=%d\n", ret);
} }
START_TEST(string) START_TEST(string)
......
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