implement GetTextFaceAliasW <- the win32k part was already implement :)
authorMagnus Olsen <magnus@greatlord.com>
Sat, 1 Sep 2007 09:21:11 +0000 (09:21 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Sat, 1 Sep 2007 09:21:11 +0000 (09:21 +0000)
svn path=/trunk/; revision=28734

reactos/dll/win32/gdi32/misc/stubs.c

index 6981726..d0d38bc 100644 (file)
@@ -1549,15 +1549,24 @@ GetTextExtentExPointWPri(HDC hdc,
 }
 
 /*
- * @unimplemented
+ * @implemented
  */
-int 
+INT 
 STDCALL
-GetTextFaceAliasW(HDC hdc,int cChar,LPWSTR pszOut)
+GetTextFaceAliasW(HDC hdc,
+                  int cChar,
+                  LPWSTR pszOut)
 {
-       UNIMPLEMENTED;
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return 0;
+    INT retValue = 0;
+    if ((!pszOut) || (cChar))
+    {
+        retValue = NtGdiGetTextFaceW(hdc,cChar,pszOut,TRUE);
+    }
+    else
+    {
+        SetLastError(ERROR_INVALID_PARAMETER);
+    }
+    return retValue;
 }
 
 /*