Author: weiden
Date: Fri Nov 16 11:43:50 2007
New Revision: 30496
URL:
http://svn.reactos.org/svn/reactos?rev=30496&view=rev
Log:
Use correct buffer size in GetClassNameW()
Modified:
trunk/reactos/dll/win32/user32/windows/class.c
Modified: trunk/reactos/dll/win32/user32/windows/class.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/c…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/class.c (original)
+++ trunk/reactos/dll/win32/user32/windows/class.c Fri Nov 16 11:43:50 2007
@@ -409,7 +409,7 @@
UNICODE_STRING ClassName;
int Result;
- ClassName.MaximumLength = nMaxCount;
+ ClassName.MaximumLength = nMaxCount * sizeof(WCHAR);
ClassName.Buffer = lpClassName;
Result = NtUserGetClassName(hWnd,