[NTGDI]: Few fixes & hacks for NtGdiGetGlyphIndicesW, see CORE-12825:
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 24 Feb 2017 01:52:25 +0000 (01:52 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 24 Feb 2017 01:52:25 +0000 (01:52 +0000)
commit2a81b18aee5316080374ecb22209f6c561145db3
tree56833c9f90bcca9c4f8ba8b426d8dee1d77cb023
parent1f67849a7e13070592be65017c46c9068e67cebe
[NTGDI]: Few fixes & hacks for NtGdiGetGlyphIndicesW, see CORE-12825:
- (Fix) Check for integer count overflow (per Thomas suggestion),
- (Hack#1) Signal the particular calling case (where pwc == NULL == pgi and cwc == 0), as discovered by the testcase of r73894,
- (Hack#2) Return error when cwc == 0 alone (triggered by e.g. Word 2010).

svn path=/trunk/; revision=73895
reactos/win32ss/gdi/ntgdi/freetype.c