11 Jan
2024
11 Jan
'24
10:41 a.m.
Rémi Bernon (@rbernon) commented about server/winstation.c:
static struct desktop *create_desktop( const struct unicode_str *name, unsigned int attr, unsigned int flags, struct winstation *winstation ) { - struct desktop *desktop; + struct desktop *desktop, *current_desktop; + + if (flags & DF_WINE_ROOT_DESKTOP && flags & DF_WINE_VIRTUAL_DESKTOP) + { + set_error( STATUS_INVALID_PARAMETER ); + return NULL; + } I'm not sure we should bother about misusing the internal flags, they are only used in a single place.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/4786#note_57156