mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:02:59 +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,15 +377,19 @@ 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))
|
||||
{
|
||||
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:
|
||||
DPRINT1("Trying to call unsupported CBT hook %d\n", Code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue