Author: jimtabor
Date: Mon Sep 14 02:36:08 2009
New Revision: 43046
URL:
http://svn.reactos.org/svn/reactos?rev=43046&view=rev
Log:
- Remove redundant null check. Spotted by Amine Khaldi.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/hook.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/hook.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/hook.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/hook.c [iso-8859-1] Mon Sep 14 02:36:08
2009
@@ -228,11 +228,7 @@
PTHREADINFO W32Thread;
PHOOKTABLE Table = IntGetTable(Hook);
- ASSERT(NULL != Table);
- if (NULL == Table)
- {
- return;
- }
+ ASSERT(NULL != Table); // At this point this should not be null!
W32Thread = ((PTHREADINFO)Hook->Thread->Tcb.Win32Thread);
ASSERT(W32Thread != NULL);