mirror of
https://github.com/reactos/wine.git
synced 2025-02-26 07:45:37 +00:00
server: In set_user_object_info len is in bytes, not WCHARs.
This commit is contained in:
parent
6539b3801d
commit
6d11348963
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user