mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
implement GetStringBitmapA (left todo implement it in win32k.sys)
svn path=/trunk/; revision=28726
This commit is contained in:
@@ -271,15 +271,37 @@ GetGlyphIndicesA(
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
UINT
|
||||
STDCALL
|
||||
GetStringBitmapA(HDC hdc,LPSTR psz,BOOL unknown,UINT cj,BYTE *lpSB)
|
||||
GetStringBitmapA(HDC hdc,
|
||||
LPSTR psz,
|
||||
BOOL DoCall,
|
||||
UINT cj,
|
||||
BYTE *lpSB)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return 0;
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user