From 6d113489631fe4301fa194d1590146aaef673903 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Sun, 11 Nov 2007 12:28:18 +0000 Subject: [PATCH] server: In set_user_object_info len is in bytes, not WCHARs. --- server/winstation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/winstation.c b/server/winstation.c index 5755ba94fb0..55e72ab2b5c 100644 --- a/server/winstation.c +++ b/server/winstation.c @@ -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;