server: In set_user_object_info len is in bytes, not WCHARs.
This commit is contained in:
parent
6539b3801d
commit
6d11348963
server
|
@ -596,7 +596,7 @@ DECL_HANDLER(set_user_object_info)
|
||||||
const WCHAR *ptr, *name = get_object_name( obj, &len );
|
const WCHAR *ptr, *name = get_object_name( obj, &len );
|
||||||
|
|
||||||
/* if there is a backslash return the part of the name after it */
|
/* 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);
|
len -= (ptr + 1 - name) * sizeof(WCHAR);
|
||||||
name = ptr + 1;
|
name = ptr + 1;
|
||||||
|
|
Loading…
Reference in New Issue