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

This commit is contained in:
Rob Shearman 2007-11-11 12:28:18 +00:00 committed by Alexandre Julliard
parent 6539b3801d
commit 6d11348963
1 changed files with 1 additions and 1 deletions

View File

@ -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;