mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
- Free all memory in error case of GetClassInfoExCommon.
- Fix RegisterClassExA for menu-less window classes. svn path=/trunk/; revision=12353
This commit is contained in:
parent
f6f130ea4b
commit
89ae96ff47
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: class.c,v 1.55 2004/12/24 17:45:58 weiden Exp $
|
||||
/* $Id: class.c,v 1.56 2004/12/26 23:56:16 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS user32.dll
|
||||
|
@ -86,6 +86,7 @@ static BOOL GetClassInfoExCommon(
|
|||
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 @@ RegisterClassExA(CONST WNDCLASSEXA *lpwcx)
|
|||
|
||||
RtlCopyMemory(&WndClass, lpwcx, sizeof(WNDCLASSEXW));
|
||||
|
||||
if (IS_ATOM(lpwcx->lpszMenuName))
|
||||
if (IS_ATOM(lpwcx->lpszMenuName) || lpwcx->lpszMenuName == 0)
|
||||
{
|
||||
MenuName.Length =
|
||||
MenuName.MaximumLength = 0;
|
||||
|
|
Loading…
Reference in a new issue