[ros-diffs] [jimtabor] 40171: - Implement AddFontMemResourceEx and simplify RemoveFontMemResourceEx.
jimtabor at svn.reactos.org
jimtabor at svn.reactos.org
Sun Mar 22 06:20:56 CET 2009
Author: jimtabor
Date: Sun Mar 22 08:20:55 2009
New Revision: 40171
URL: http://svn.reactos.org/svn/reactos?rev=40171&view=rev
Log:
- Implement AddFontMemResourceEx and simplify RemoveFontMemResourceEx.
Modified:
trunk/reactos/dll/win32/gdi32/misc/stubs.c
Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs.c?rev=40171&r1=40170&r2=40171&view=diff
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubs.c [iso-8859-1] Sun Mar 22 08:20:55 2009
@@ -955,7 +955,7 @@
}
/*
- * @unimplemented
+ * @implemented
*/
HANDLE
WINAPI
@@ -966,9 +966,12 @@
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 @@
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;
}
/*
More information about the Ros-diffs
mailing list