From aeebfa7e0e9f775367f51c1c08fb23dec10739e3 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Tue, 12 Jul 2011 09:14:24 +0000 Subject: [PATCH] [user32] - Implement UnregisterUserApiHook - Fix a warning svn path=/branches/GSoC_2011/ThemesSupport/; revision=52651 --- dll/win32/user32/misc/usrapihk.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dll/win32/user32/misc/usrapihk.c b/dll/win32/user32/misc/usrapihk.c index 4dabbbe9942..3eadd8a301b 100644 --- a/dll/win32/user32/misc/usrapihk.c +++ b/dll/win32/user32/misc/usrapihk.c @@ -259,7 +259,7 @@ InitUserApiHook(HINSTANCE hInstance, USERAPIHOOKPROC pfn) RtlEnterCriticalSection(&gcsUserApiHook); - if (!pfn(uahLoadInit,(ULONG_PTR)&uah) || // Swap data, User32 to and Uxtheme from! + if (!pfn(uahLoadInit,&uah) || // Swap data, User32 to and Uxtheme from! uah.ForceResetUserApiHook != (FARPROC)ForceResetUserApiHook || uah.size <= 0 ) { @@ -391,7 +391,5 @@ BOOL WINAPI RegisterUserApiHook(PUSERAPIHOOKINFO puah) */ BOOL WINAPI UnregisterUserApiHook(VOID) { - // Direct call to Win32k! Here only as a prototype..... - UNIMPLEMENTED; - return FALSE; + return NtUserUnregisterUserApiHook(); }