- Add comments to GetTextFaceW

- Apology to GreatLord, his code was correct and I fail -- hint: don't code and commit at late night ;0)

svn path=/trunk/; revision=36782
This commit is contained in:
Stefan Ginsberg 2008-10-17 07:20:23 +00:00
parent e2447c3d0f
commit 0bdd03839a

View file

@ -363,11 +363,15 @@ GetTextFaceW(HDC hDC,
INT nCount,
PWSTR pFaceName)
{
/* Validate parameters */
if (pFaceName && nCount <= 0)
{
/* Set last error and return failure */
GdiSetLastError(ERROR_INVALID_PARAMETER);
return 0;
}
/* Forward to kernel */
return NtGdiGetTextFaceW(hDC, nCount, pFaceName, FALSE);
}