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

Alexandre Julliard julliard at winehq.org
Mon Nov 12 06:27:45 CST 2007


Module: wine
Branch: master
Commit: 6d113489631fe4301fa194d1590146aaef673903
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6d113489631fe4301fa194d1590146aaef673903

Author: Rob Shearman <rob at codeweavers.com>
Date:   Sun Nov 11 12:28:18 2007 +0000

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

---

 server/winstation.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/winstation.c b/server/winstation.c
index 5755ba9..55e72ab 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;




More information about the wine-cvs mailing list