mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 15:13:36 +00:00
- 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:
parent
e2447c3d0f
commit
0bdd03839a
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue