[ros-diffs] [weiden] 27937: Remove incorrect error check

weiden at svn.reactos.org weiden at svn.reactos.org
Fri Jul 27 22:03:05 CEST 2007


Author: weiden
Date: Sat Jul 28 00:03:05 2007
New Revision: 27937

URL: http://svn.reactos.org/svn/reactos?rev=27937&view=rev
Log:
Remove incorrect error check

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/class.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/class.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/class.c?rev=27937&r1=27936&r2=27937&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/class.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/class.c Sat Jul 28 00:03:05 2007
@@ -2207,16 +2207,6 @@
 
                 /* Undocumented behavior! Return the class atom as a BOOL! */
                 Ret = (BOOL)ClassAtom;
-
-                if (!(Class->Global || Class->System) && hInstance == NULL)
-                {
-                    if (CapturedClassName.Length == 0)
-                       WARN("Tried to get information of a non-existing class atom 0x%p\n", CapturedClassName.Buffer);
-                    else
-                       WARN("Tried to get information of a non-existing class \"%wZ\"\n", &CapturedClassName);
-                    SetLastWin32Error(ERROR_CLASS_DOES_NOT_EXIST);
-                    Ret = FALSE;
-                }
             }
          }
          else




More information about the Ros-diffs mailing list