Commit in reactos/lib/user32/windows on ros-branch-0_2_5
class.c+3-21.53 -> 1.53.2.1
- Free all memory in error case of GetClassInfoExCommon.
- Fix RegisterClassExA for menu-less window classes.

reactos/lib/user32/windows
class.c 1.53 -> 1.53.2.1
diff -u -r1.53 -r1.53.2.1
--- class.c	17 Dec 2004 09:56:10 -0000	1.53
+++ class.c	27 Dec 2004 00:44:11 -0000	1.53.2.1
@@ -1,4 +1,4 @@
-/* $Id: class.c,v 1.53 2004/12/17 09:56:10 gvg Exp $
+/* $Id: class.c,v 1.53.2.1 2004/12/27 00:44:11 navaraf Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS user32.dll
@@ -86,6 +86,7 @@
   if ( !str3.Buffer )
   {
     SetLastError (RtlNtStatusToDosError(STATUS_NO_MEMORY));
+    HEAP_free ( str2.Buffer );
     if ( !IS_ATOM(str) )
       HEAP_free ( str );
     return FALSE;
@@ -438,7 +439,7 @@
   
    RtlCopyMemory(&WndClass, lpwcx, sizeof(WNDCLASSEXW));
 
-   if (IS_ATOM(lpwcx->lpszMenuName))
+   if (IS_ATOM(lpwcx->lpszMenuName) || lpwcx->lpszMenuName == 0)
    {
       MenuName.Length =
       MenuName.MaximumLength = 0;
CVSspam 0.2.8