mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
fix implement of GetTextFaceW checking if the param is vaild or not
svn path=/trunk/; revision=28730
This commit is contained in:
parent
112625358d
commit
b7c7180b3a
1 changed files with 14 additions and 7 deletions
|
@ -318,15 +318,22 @@ ExtTextOutW(
|
|||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int
|
||||
INT
|
||||
STDCALL
|
||||
GetTextFaceW(
|
||||
HDC hDC,
|
||||
int nCount,
|
||||
LPWSTR lpFaceName
|
||||
)
|
||||
GetTextFaceW(HDC hDC,
|
||||
int nCount,
|
||||
LPWSTR lpFaceName)
|
||||
{
|
||||
return NtGdiGetTextFaceW(hDC, nCount, lpFaceName, FALSE);
|
||||
INT retValue = 0;
|
||||
if ((!lpFaceName) || (nCount))
|
||||
{
|
||||
retValue = NtGdiGetTextFaceW(hDC,nCount,lpFaceName,0);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
}
|
||||
return retValue;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue