31 Jan
2024
31 Jan
'24
4:33 p.m.
Jinoh Kang (@iamahuman) commented about dlls/win32u/winstation.c:
#define DESKTOP_ALL_ACCESS 0x01ff
+static volatile void *map_object_shared_memory( HANDLE object, SIZE_T size ) +{ + static const WCHAR mapping_nameW[] = + { + '_','_','w','i','n','e','_','m','a','p','p','i','n','g',0 + }; + OBJECT_ATTRIBUTES attr; + UNICODE_STRING section_str; + HANDLE handle; + UINT status; + void *ptr; + + RtlInitUnicodeString( §ion_str, mapping_nameW );
(super nit) ```suggestion:-0+0 section_str = RTL_CONSTANT_STRING( mapping_nameW ); ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3103#note_59652