From b592122ee6a30e49c753cdea4eaf87307623dcb6 Mon Sep 17 00:00:00 2001 From: Jason Filby Date: Fri, 14 Jun 2002 19:07:32 +0000 Subject: [PATCH] Fixed another typo svn path=/trunk/; revision=3087 --- reactos/lib/user32/windows/class.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/lib/user32/windows/class.c b/reactos/lib/user32/windows/class.c index a25005f5b5a..5c3d7564532 100644 --- a/reactos/lib/user32/windows/class.c +++ b/reactos/lib/user32/windows/class.c @@ -1,4 +1,4 @@ -/* $Id: class.c,v 1.11 2002/06/14 18:55:09 jfilby Exp $ +/* $Id: class.c,v 1.12 2002/06/14 19:07:32 jfilby Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -172,12 +172,14 @@ RegisterClassExA(CONST WNDCLASSEX *lpwcx) if (!RtlCreateUnicodeStringFromAsciiz(&MenuName, (PCSZ)lpwcx->lpszMenuName)) { + RtlFreeUnicodeString(&MenuName); SetLastError(ERROR_NOT_ENOUGH_MEMORY); return (ATOM)0; } if (!RtlCreateUnicodeStringFromAsciiz(&ClassName, (PCSZ)lpwcx->lpszClassName)) { + RtlFreeUnicodeString(&ClassName); SetLastError(ERROR_NOT_ENOUGH_MEMORY); return (ATOM)0; } @@ -194,7 +196,6 @@ RegisterClassExA(CONST WNDCLASSEX *lpwcx) 0); RtlFreeUnicodeString(&ClassName); - RtlFreeUnicodeString(&MenuName); return (ATOM)Atom;