Commit 6d113489 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

server: In set_user_object_info len is in bytes, not WCHARs.

parent 6539b380
......@@ -596,7 +596,7 @@ DECL_HANDLER(set_user_object_info)
const WCHAR *ptr, *name = get_object_name( obj, &len );
/* if there is a backslash return the part of the name after it */
if (name && (ptr = memchrW( name, '\\', len )))
if (name && (ptr = memchrW( name, '\\', len/sizeof(WCHAR) )))
{
len -= (ptr + 1 - name) * sizeof(WCHAR);
name = ptr + 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment