fix implement of GetTextFaceW checking if the param is vaild or not

svn path=/trunk/; revision=28730
This commit is contained in:
Magnus Olsen 2007-09-01 00:23:48 +00:00
parent 112625358d
commit b7c7180b3a

View file

@ -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;
}