Remove incorrect error check
authorThomas Bluemel <thomas@reactsoft.com>
Fri, 27 Jul 2007 20:03:05 +0000 (20:03 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Fri, 27 Jul 2007 20:03:05 +0000 (20:03 +0000)
svn path=/trunk/; revision=27937

reactos/subsystems/win32/win32k/ntuser/class.c

index 41ecd39..772b81c 100644 (file)
@@ -2207,16 +2207,6 @@ InvalidParameter:
 
                 /* 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