usp10: Added test of ScriptStringAnalyse call with 0 length string.
This commit is contained in:
parent
eb45704ba8
commit
efb1cf0299
|
@ -2547,6 +2547,12 @@ static void test_ScriptString(HDC hdc)
|
||||||
&InClass, &ssa);
|
&InClass, &ssa);
|
||||||
ok(hr == E_PENDING, "ScriptStringAnalyse Stub should return E_PENDING not %08x\n", hr);
|
ok(hr == E_PENDING, "ScriptStringAnalyse Stub should return E_PENDING not %08x\n", hr);
|
||||||
|
|
||||||
|
/* Test that 0 length string returns E_INVALIDARG */
|
||||||
|
hr = ScriptStringAnalyse( hdc, teststr, 0, Glyphs, Charset, Flags,
|
||||||
|
ReqWidth, NULL, NULL, Dx, NULL,
|
||||||
|
&InClass, &ssa);
|
||||||
|
ok(hr == E_INVALIDARG, "ScriptStringAnalyse should return E_INVALIDARG not %08x\n", hr);
|
||||||
|
|
||||||
/* test with hdc, this should be a valid test */
|
/* test with hdc, this should be a valid test */
|
||||||
hr = ScriptStringAnalyse( hdc, teststr, len, Glyphs, Charset, Flags,
|
hr = ScriptStringAnalyse( hdc, teststr, len, Glyphs, Charset, Flags,
|
||||||
ReqWidth, NULL, NULL, Dx, NULL,
|
ReqWidth, NULL, NULL, Dx, NULL,
|
||||||
|
|
Loading…
Reference in New Issue