Author: sginsberg
Date: Fri Oct 17 02:20:23 2008
New Revision: 36782
URL:
http://svn.reactos.org/svn/reactos?rev=36782&view=rev
Log:
- Add comments to GetTextFaceW
- Apology to GreatLord, his code was correct and I fail -- hint: don't code and commit
at late night ;0)
Modified:
trunk/reactos/dll/win32/gdi32/objects/text.c
Modified: trunk/reactos/dll/win32/gdi32/objects/text.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/te…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/text.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/text.c [iso-8859-1] Fri Oct 17 02:20:23 2008
@@ -363,11 +363,15 @@
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);
}