[ros-diffs] [greatlrd] 28734: implement GetTextFaceAliasW <- the win32k part was already implement :)

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sat Sep 1 11:21:12 CEST 2007


Author: greatlrd
Date: Sat Sep  1 13:21:11 2007
New Revision: 28734

URL: http://svn.reactos.org/svn/reactos?rev=28734&view=rev
Log:
implement GetTextFaceAliasW <- the win32k part was already implement :)

Modified:
    trunk/reactos/dll/win32/gdi32/misc/stubs.c

Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs.c?rev=28734&r1=28733&r2=28734&view=diff
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/stubs.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubs.c Sat Sep  1 13:21:11 2007
@@ -1549,15 +1549,24 @@
 }
 
 /*
- * @unimplemented
- */
-int 
-STDCALL
-GetTextFaceAliasW(HDC hdc,int cChar,LPWSTR pszOut)
-{
-	UNIMPLEMENTED;
-	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-	return 0;
+ * @implemented
+ */
+INT 
+STDCALL
+GetTextFaceAliasW(HDC hdc,
+                  int cChar,
+                  LPWSTR pszOut)
+{
+    INT retValue = 0;
+    if ((!pszOut) || (cChar))
+    {
+        retValue = NtGdiGetTextFaceW(hdc,cChar,pszOut,TRUE);
+    }
+    else
+    {
+        SetLastError(ERROR_INVALID_PARAMETER);
+    }
+    return retValue;
 }
 
 /*




More information about the Ros-diffs mailing list