summaryrefslogtreecommitdiffhomepage
path: root/src/sem/ntapi_sem_connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sem/ntapi_sem_connect.c')
-rw-r--r--src/sem/ntapi_sem_connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sem/ntapi_sem_connect.c b/src/sem/ntapi_sem_connect.c
index 2dc9a94..33a4541 100644
--- a/src/sem/ntapi_sem_connect.c
+++ b/src/sem/ntapi_sem_connect.c
@@ -114,7 +114,7 @@ static int32_t __sempid_symlink_set(
__ntapi->tt_port_name_from_attr(
&svcname,&semctl->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;