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
|
HANDLE
|
||||||
WINAPI
|
WINAPI
|
||||||
|
@ -966,9 +966,12 @@ AddFontMemResourceEx(
|
||||||
DWORD *pcFonts
|
DWORD *pcFonts
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
if ( pbFont && cbFont && pcFonts)
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
{
|
||||||
return 0;
|
return NtGdiAddFontMemResourceEx(pbFont, cbFont, NULL, 0, pcFonts);
|
||||||
|
}
|
||||||
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1267,17 +1270,12 @@ BOOL
|
||||||
WINAPI
|
WINAPI
|
||||||
RemoveFontMemResourceEx(HANDLE fh)
|
RemoveFontMemResourceEx(HANDLE fh)
|
||||||
{
|
{
|
||||||
BOOL retValue=0;
|
if (fh)
|
||||||
|
{
|
||||||
if (fh)
|
return NtGdiRemoveFontMemResourceEx(fh);
|
||||||
{
|
}
|
||||||
retValue = NtGdiRemoveFontMemResourceEx(fh);
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
}
|
return FALSE;
|
||||||
else
|
|
||||||
{
|
|
||||||
SetLastError(ERROR_INVALID_PARAMETER);
|
|
||||||
}
|
|
||||||
return retValue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue