mirror of
https://github.com/reactos/reactos.git
synced 2024-07-09 06:05:11 +00:00
Use correct buffer size in GetClassNameW()
svn path=/trunk/; revision=30496
This commit is contained in:
parent
cb75e8f462
commit
7cd69cac74
|
@ -409,7 +409,7 @@ GetClassNameW(
|
|||
UNICODE_STRING ClassName;
|
||||
int Result;
|
||||
|
||||
ClassName.MaximumLength = nMaxCount;
|
||||
ClassName.MaximumLength = nMaxCount * sizeof(WCHAR);
|
||||
ClassName.Buffer = lpClassName;
|
||||
|
||||
Result = NtUserGetClassName(hWnd,
|
||||
|
|
Loading…
Reference in a new issue