[ros-diffs] [greatlrd] 28726: implement GetStringBitmapA (left todo implement it in win32k.sys)

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sat Sep 1 00:33:53 CEST 2007


Author: greatlrd
Date: Sat Sep  1 02:33:53 2007
New Revision: 28726

URL: http://svn.reactos.org/svn/reactos?rev=28726&view=rev
Log:
implement GetStringBitmapA (left todo implement it in win32k.sys)

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

Modified: trunk/reactos/dll/win32/gdi32/misc/stubsa.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubsa.c?rev=28726&r1=28725&r2=28726&view=diff
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/stubsa.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubsa.c Sat Sep  1 02:33:53 2007
@@ -271,15 +271,37 @@
 }
 
 /*
- * @unimplemented
+ * @implemented
  */
 UINT
 STDCALL
-GetStringBitmapA(HDC hdc,LPSTR psz,BOOL unknown,UINT cj,BYTE *lpSB)
-{
-	UNIMPLEMENTED;
-	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-	return 0;
+GetStringBitmapA(HDC hdc,
+                 LPSTR psz,
+                 BOOL DoCall,
+                 UINT cj,
+                 BYTE *lpSB)
+{
+
+    NTSTATUS Status;
+    PWSTR pwsz;
+    UINT retValue = 0;
+
+    if (DoCall)
+    {
+        Status = HEAP_strdupA2W ( &pwsz, psz );
+        if ( !NT_SUCCESS (Status) )
+        {
+            SetLastError (RtlNtStatusToDosError(Status));
+        }
+        else
+        {
+            retValue = NtGdiGetStringBitmapW(hdc, pwsz, 1, lpSB, cj);
+            HEAP_free ( pwsz );
+        }
+    }
+
+    return retValue;
+
 }
 
 




More information about the Ros-diffs mailing list