- Fix two inverted pointer checks, found by Amine Khaldi

- Add, correct implemented comment

svn path=/trunk/; revision=42889
This commit is contained in:
Gregor Schneider 2009-08-23 21:55:24 +00:00
parent 687189aaaf
commit 4a61832f36
2 changed files with 8 additions and 5 deletions

View file

@ -38,7 +38,11 @@ copy_my_glyphset( FD_GLYPHSET *dst_glyphset , FD_GLYPHSET * src_glyphset, ULONG
return retValue; return retValue;
} }
FD_GLYPHSET* WINAPI /*
* @implemented
*/
FD_GLYPHSET*
WINAPI
EngComputeGlyphSet(INT nCodePage,INT nFirstChar,INT cChars) EngComputeGlyphSet(INT nCodePage,INT nFirstChar,INT cChars)
{ {
FD_GLYPHSET * ntfd_glyphset; FD_GLYPHSET * ntfd_glyphset;
@ -46,13 +50,12 @@ EngComputeGlyphSet(INT nCodePage,INT nFirstChar,INT cChars)
ntfd_glyphset = NtGdiEngComputeGlyphSet(nCodePage,nFirstChar,cChars); ntfd_glyphset = NtGdiEngComputeGlyphSet(nCodePage,nFirstChar,cChars);
if (!ntfd_glyphset) if (ntfd_glyphset)
{ {
if (ntfd_glyphset->cjThis) if (ntfd_glyphset->cjThis)
{ {
myfd_glyphset = GlobalAlloc(0,ntfd_glyphset->cjThis); myfd_glyphset = GlobalAlloc(0,ntfd_glyphset->cjThis);
if (myfd_glyphset)
if (!myfd_glyphset)
{ {
if (copy_my_glyphset(myfd_glyphset,ntfd_glyphset,ntfd_glyphset->cjThis) == FALSE) if (copy_my_glyphset(myfd_glyphset,ntfd_glyphset,ntfd_glyphset->cjThis) == FALSE)
{ {

View file

@ -1700,7 +1700,7 @@ GdiGetCharDimensions(HDC hdc, LPTEXTMETRICW lptm, LONG *height)
* *
*/ */
/* /*
* @unimplemented * @implemented
*/ */
BOOL BOOL
WINAPI WINAPI