summaryrefslogtreecommitdiffhomepage
path: root/src/msq
diff options
context:
space:
mode:
Diffstat (limited to 'src/msq')
-rw-r--r--src/msq/ntapi_msq_connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msq/ntapi_msq_connect.c b/src/msq/ntapi_msq_connect.c
index c4a0f98..301adfa 100644
--- a/src/msq/ntapi_msq_connect.c
+++ b/src/msq/ntapi_msq_connect.c
@@ -114,7 +114,7 @@ static int32_t __msqpid_symlink_set(
__ntapi->tt_port_name_from_attr(
&svcname,&msqctl->attr);
- str.strlen = (uint16_t)(size_t)(&(((nt_port_name *)0)->null_termination));
+ str.strlen = (uint16_t)(__offsetof(nt_port_name,null_termination));
str.maxlen = sizeof(nt_port_name);
str.buffer = svcname.base_named_objects;