mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:35:47 +00:00
- Fix ATOM check for HCBT_CREATEWND callback.
svn path=/trunk/; revision=41615
This commit is contained in:
parent
f1ab1a2cae
commit
576c4e61fe
1 changed files with 11 additions and 7 deletions
|
@ -377,14 +377,18 @@ co_IntCallHookProc(INT HookId,
|
|||
ArgumentLength += WindowName.Length + sizeof(WCHAR);
|
||||
}
|
||||
|
||||
if (Ansi)
|
||||
RtlInitAnsiString(asClassName, (PCSZ)CbtCreateWnd->lpcs->lpszClass);
|
||||
else
|
||||
RtlInitUnicodeString(&ClassName, CbtCreateWnd->lpcs->lpszClass);
|
||||
|
||||
if (! IS_ATOM(ClassName.Buffer))
|
||||
if (! IS_ATOM(CbtCreateWnd->lpcs->lpszClass))
|
||||
{
|
||||
ArgumentLength += ClassName.Length + sizeof(WCHAR);
|
||||
if (Ansi)
|
||||
{
|
||||
RtlInitAnsiString(asClassName, (PCSZ)CbtCreateWnd->lpcs->lpszClass);
|
||||
ArgumentLength += ClassName.Length + sizeof(CHAR);
|
||||
}
|
||||
else
|
||||
{
|
||||
RtlInitUnicodeString(&ClassName, CbtCreateWnd->lpcs->lpszClass);
|
||||
ArgumentLength += ClassName.Length + sizeof(WCHAR);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue