mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Use correct buffer size in GetClassNameW()
svn path=/trunk/; revision=30496
This commit is contained in:
@@ -409,7 +409,7 @@ GetClassNameW(
|
||||
UNICODE_STRING ClassName;
|
||||
int Result;
|
||||
|
||||
ClassName.MaximumLength = nMaxCount;
|
||||
ClassName.MaximumLength = nMaxCount * sizeof(WCHAR);
|
||||
ClassName.Buffer = lpClassName;
|
||||
|
||||
Result = NtUserGetClassName(hWnd,
|
||||
|
||||
Reference in New Issue
Block a user