Author: jimtabor
Date: Fri Jun 26 01:00:16 2009
New Revision: 41615
URL:
http://svn.reactos.org/svn/reactos?rev=41615&view=rev
Log:
- Fix ATOM check for HCBT_CREATEWND callback.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/callback.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/callback.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/callback.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/callback.c [iso-8859-1] Fri Jun 26
01:00:16 2009
@@ -377,14 +377,18 @@
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: