[PATCH 0/1] MR1806: include: Add RTL_CONSTANT_STRING.
13 Dec
2022
13 Dec
'22
6 a.m.
This macro would be useful for Wine because it would allow us to avoid calling RtlInitUnicodeString on a constant at runtime (which is pretty common). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1806
13 Dec
13 Dec
6 a.m.
New subject: [PATCH 1/1] include: Add RTL_CONSTANT_STRING.
From: Alex Henrie <alexhenrie24(a)gmail.com> --- include/ntdef.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ntdef.h b/include/ntdef.h index 92366c3f3bb..8d04f83da5d 100644 --- a/include/ntdef.h +++ b/include/ntdef.h @@ -84,4 +84,6 @@ typedef struct _RTL_BALANCED_NODE #define RTL_BALANCED_NODE_RESERVED_PARENT_MASK 3 +#define RTL_CONSTANT_STRING(s) { sizeof(s) - sizeof(s[0]), sizeof(s), (void*)s } + #endif /* _NTDEF_ */ -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1806
1178
Age (days ago)
1178
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alex Henrie -
Alex Henrie (@alexhenrie)