Eric Pouech pouech-eric@wanadoo.fr writes:
+/******************************************************************
NtAddAtom (NTDLL.@)
- */
+NTSTATUS WINAPI NtAddAtom( const WCHAR* name, ULONG name_len, ATOM* atom ) +{
- return RtlAddAtomToAtomTable( get_global_table(), name, atom );
+}
You can't do that, if the name is a counted string you cannot ignore the length and assume it is null-terminated.