From 9c2159e7f6e67f378e8cfffe7d3992bd6e572907 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 2 Sep 2007 12:18:34 +0000 Subject: [PATCH] implement RemoveFontMemResourceEx (left todo fix it in win32k) svn path=/trunk/; revision=28768 --- reactos/dll/win32/gdi32/misc/stubs.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/reactos/dll/win32/gdi32/misc/stubs.c b/reactos/dll/win32/gdi32/misc/stubs.c index 49f90b1ac9c..70e7d2eba40 100644 --- a/reactos/dll/win32/gdi32/misc/stubs.c +++ b/reactos/dll/win32/gdi32/misc/stubs.c @@ -1621,17 +1621,23 @@ QueryFontAssocStatus(VOID) } /* - * @unimplemented + * @implemented */ BOOL STDCALL -RemoveFontMemResourceEx( - HANDLE fh -) +RemoveFontMemResourceEx(HANDLE fh) { - UNIMPLEMENTED; - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return 0; + BOOL retValue=0; + + if (fh) + { + retValue = NtGdiRemoveFontMemResourceEx(fh); + } + else + { + SetLastError(ERROR_INVALID_PARAMETER); + } + return retValue; } /*