From 0a5b749896706de9cf4cdc69f78fe4a9ebf2d856 Mon Sep 17 00:00:00 2001 From: Jason Filby Date: Fri, 14 Jun 2002 18:55:09 +0000 Subject: [PATCH] Fixed some typos svn path=/trunk/; revision=3086 --- reactos/lib/user32/windows/class.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/reactos/lib/user32/windows/class.c b/reactos/lib/user32/windows/class.c index 43dd0b2eef7..a25005f5b5a 100644 --- a/reactos/lib/user32/windows/class.c +++ b/reactos/lib/user32/windows/class.c @@ -1,4 +1,4 @@ -/* $Id: class.c,v 1.10 2002/06/11 22:09:01 dwelch Exp $ +/* $Id: class.c,v 1.11 2002/06/14 18:55:09 jfilby Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -176,9 +176,8 @@ RegisterClassExA(CONST WNDCLASSEX *lpwcx) return (ATOM)0; } - if (!RtlCreateUnicodeStringFromAsciiz(&ClassName, (PCSZ)lpwcx->lpszMenuName)) + if (!RtlCreateUnicodeStringFromAsciiz(&ClassName, (PCSZ)lpwcx->lpszClassName)) { - RtlFreeUnicodeString(&MenuName); SetLastError(ERROR_NOT_ENOUGH_MEMORY); return (ATOM)0; } @@ -187,7 +186,7 @@ RegisterClassExA(CONST WNDCLASSEX *lpwcx) Class.lpszMenuName = (LPCTSTR)MenuName.Buffer; Class.lpszClassName = (LPCTSTR)ClassName.Buffer; - Atom = NtUserRegisterClassExWOW((WNDCLASSEX*)lpwcx, + Atom = NtUserRegisterClassExWOW(&Class, FALSE, 0, 0, @@ -205,7 +204,7 @@ ATOM STDCALL RegisterClassExW(CONST WNDCLASSEX *lpwcx) { RTL_ATOM Atom; - + Atom = NtUserRegisterClassExWOW((WNDCLASSEX*)lpwcx, TRUE, 0, @@ -220,7 +219,7 @@ ATOM STDCALL RegisterClassW(CONST WNDCLASS *lpWndClass) { WNDCLASSEX Class; - + RtlMoveMemory(&Class.style, lpWndClass, sizeof(WNDCLASS)); Class.cbSize = sizeof(WNDCLASSEX); Class.hIconSm = INVALID_HANDLE_VALUE;