mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 12:23:28 +00:00
- Fix ATOM check for HCBT_CREATEWND callback.
svn path=/trunk/; revision=41615
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user