From 70fcfa755c81405ecb2ca1a11fddb32f4c953d0b Mon Sep 17 00:00:00 2001 From: Vitaliy Margolen Date: Mon, 30 Jan 2006 14:56:25 +0100 Subject: [PATCH] user: Remove duplicate code. --- dlls/user/hook.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dlls/user/hook.c b/dlls/user/hook.c index 25333476db2..b871615d764 100644 --- a/dlls/user/hook.c +++ b/dlls/user/hook.c @@ -142,12 +142,6 @@ static HHOOK set_windows_hook( INT id, HOOKPROC proc, HINSTANCE inst, DWORD tid, return 0; } - if (!proc) - { - SetLastError( ERROR_INVALID_FILTER_PROC ); - return 0; - } - /* FIXME: what if the tid belongs to another process? */ if (tid) /* thread-local hook */ {