From 1717a8ab178466bb73fd4c0a7fba1402df9deef0 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 18 Nov 2022 17:29:49 +0000 Subject: ipc helper interfaces: allow requesting an existing connection. --- src/msq/ntapi_msq_connect.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/msq') diff --git a/src/msq/ntapi_msq_connect.c b/src/msq/ntapi_msq_connect.c index 532cac0..db4a314 100644 --- a/src/msq/ntapi_msq_connect.c +++ b/src/msq/ntapi_msq_connect.c @@ -67,7 +67,8 @@ static int32_t __msqctl_server_connect( /* connect */ if ((status = __ntapi->ipc_connect_by_attr( &rtdata->hmsqctl, - &msqctl->attr))) + &msqctl->attr, + false))) return status; /* update */ @@ -200,7 +201,8 @@ static int32_t __stdcall __msq_open( /* new msqueue? */ if (opcode == NT_TTY_MSQ_ALLOC) if ((status = __ntapi->ipc_connect_by_attr( - &hipc,&msg.svcinfo.attr))) + &hipc,&msg.svcinfo.attr, + false))) return status; /* all done */ @@ -334,7 +336,7 @@ int32_t __stdcall __ntapi_msq_open( /* ipc connect */ status = __ntapi->ipc_connect_by_symlink( - &hipc,hsymlink); + &hipc,hsymlink,false); __ntapi->zw_close( hsymlink); -- cgit v1.2.3