mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
- Implement AddFontMemResourceEx and simplify RemoveFontMemResourceEx.
svn path=/trunk/; revision=40171
This commit is contained in:
parent
6ece2fd104
commit
aa35b26caf
1 changed files with 13 additions and 15 deletions
|
@ -955,7 +955,7 @@ gdiPlaySpoolStream(
|
|||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
HANDLE
|
||||
WINAPI
|
||||
|
@ -966,9 +966,12 @@ AddFontMemResourceEx(
|
|||
DWORD *pcFonts
|
||||
)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return 0;
|
||||
if ( pbFont && cbFont && pcFonts)
|
||||
{
|
||||
return NtGdiAddFontMemResourceEx(pbFont, cbFont, NULL, 0, pcFonts);
|
||||
}
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1267,17 +1270,12 @@ BOOL
|
|||
WINAPI
|
||||
RemoveFontMemResourceEx(HANDLE fh)
|
||||
{
|
||||
BOOL retValue=0;
|
||||
|
||||
if (fh)
|
||||
{
|
||||
retValue = NtGdiRemoveFontMemResourceEx(fh);
|
||||
return NtGdiRemoveFontMemResourceEx(fh);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
}
|
||||
return retValue;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue