mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 06:45:24 +00:00
[GDI32_APITEST]: GetGlyphIndices: Have fun & make ReactOS BSoD from user-mode! More seriously, test extra cases of this API, and show that our current implementation certainly is incomplete & prone to bugs.
The particular case "GetGlyphIndicesW(hdc, NULL, 0, NULL, 0)" is used by Word 2010 (and other apps) when opening the font combolist, and seems to be undocumented. CORE-12825 CORE-6621 CORE-12279 svn path=/trunk/; revision=73894
This commit is contained in:
parent
f981e06368
commit
1f67849a7e
1 changed files with 10 additions and 0 deletions
|
@ -124,9 +124,19 @@ START_TEST(GetGlyphIndices)
|
|||
ok_lasterrornotchanged();
|
||||
ok_int(GetGlyphIndicesW(hdc, NULL, 1, Indices, 0), GDI_ERROR);
|
||||
ok_lasterrornotchanged();
|
||||
ok_int(GetGlyphIndicesW(hdc, Single, 0, NULL, 0), GDI_ERROR);
|
||||
ok_lasterrornotchanged();
|
||||
ok_int(GetGlyphIndicesW(hdc, Single, 0, Indices, 0), GDI_ERROR);
|
||||
ok_lasterrornotchanged();
|
||||
ok_int(GetGlyphIndicesW(hdc, Single, 1, NULL, 0), GDI_ERROR);
|
||||
ok_lasterrornotchanged();
|
||||
|
||||
/* Test an exceptional case that does not seem to return an error */
|
||||
// FIXME: What does the returned value exactly means?
|
||||
ok(GetGlyphIndicesW(hdc, NULL, 0, NULL, 0) != 0,
|
||||
"GetGlyphIndicesW(hdc, NULL, 0, NULL, 0) return expected not zero, but got zero!\n");
|
||||
ok_lasterrornotchanged();
|
||||
|
||||
/* Test a single valid char */
|
||||
Single[0] = L'a';
|
||||
ok_int(GetGlyphIndicesW(hdc, Single, 1, Indices, 0), 1);
|
||||
|
|
Loading…
Reference in a new issue