- 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
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);
}
else
{
SetLastError(ERROR_INVALID_PARAMETER);
}
return retValue;
if (fh)
{
return NtGdiRemoveFontMemResourceEx(fh);
}
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
/*