Re: [PATCH v2 0/2] MR2016: winex11: Take advantage of RTL_CONSTANT_STRING.
28 Feb
2023
28 Feb
'23
4:34 p.m.
Jacek Caban (@jacek) commented about dlls/winex11.drv/desktop.c:
static void query_desktop_work_area( RECT *rc_work ) { static const WCHAR trayW[] = {'S','h','e','l','l','_','T','r','a','y','W','n','d'}; - UNICODE_STRING str = { sizeof(trayW), sizeof(trayW), (WCHAR *)trayW }; + UNICODE_STRING str = RTL_CONSTANT_STRING( trayW ); You'd need to null-terminate trayW for this to work.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2016#note_25765
1023
Age (days ago)
1023
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jacek Caban (@jacek)