mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Bugfix: correct memory allocation calculation
svn path=/trunk/; revision=3088
This commit is contained in:
parent
b592122ee6
commit
b6b3e3f14e
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: class.c,v 1.6 2002/06/14 15:21:43 jfilby Exp $
|
||||
/* $Id: class.c,v 1.7 2002/06/14 20:56:17 jfilby Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -218,8 +218,8 @@ NtUserRegisterClassExWOW(LPWNDCLASSEX lpwcx,
|
|||
}
|
||||
|
||||
objectSize = sizeof(WNDCLASS_OBJECT) +
|
||||
(lpwcx->lpszMenuName != 0 ? wcslen (lpwcx->lpszMenuName) + 1 : 0) +
|
||||
wcslen (lpwcx->lpszClassName) + 1;
|
||||
(lpwcx->lpszMenuName != 0 ? ((wcslen (lpwcx->lpszMenuName) + 1) * 2) : 0) +
|
||||
((wcslen (lpwcx->lpszClassName) + 1) * 2);
|
||||
ClassObject = ObmCreateObject(NULL, NULL, otClass, objectSize);
|
||||
if (ClassObject == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue