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/stubs…
==============================================================================
--- 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;
+
}