22 Feb
2024
22 Feb
'24
7:08 p.m.
Alexandre Julliard (@julliard) commented about server/winstation.c:
struct winstation *winstation = NULL; struct desktop *desktop = NULL; obj_handle_t handle; + data_size_t pos; + + for (pos = 0; pos < desktop_name.len; pos++) + { + if (desktop_name.str[pos] == '\\') + { + winstation_name.str = desktop_name.str; + winstation_name.len = pos; + desktop_name.str += pos + 1; + desktop_name.len -= pos + 1; + break; + } + }
unicode_str lengths are in bytes, not WCHARs (same as UNICODE_STRING). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5134#note_62324