- Implement AddFontMemResourceEx and simplify RemoveFontMemResourceEx.

svn path=/trunk/; revision=40171
This commit is contained in:
James Tabor 2009-03-22 05:20:55 +00:00
parent 6ece2fd104
commit aa35b26caf

View file

@ -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;
} }
/* /*