summaryrefslogtreecommitdiffhomepage
path: root/src/sem/ntapi_sem_set.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sem/ntapi_sem_set.c')
-rw-r--r--src/sem/ntapi_sem_set.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sem/ntapi_sem_set.c b/src/sem/ntapi_sem_set.c
index c7833fc..fac65e3 100644
--- a/src/sem/ntapi_sem_set.c
+++ b/src/sem/ntapi_sem_set.c
@@ -77,11 +77,12 @@ int32_t __stdcall __ntapi_sem_set(
} else if ((status = __ntapi->ipc_init_section_by_port(
sem->hport,&hsection,
- &secaddr,&secsize)))
+ &secaddr,&secsize))) {
return status;
- else
+ } else {
mapaddr = secaddr;
+ }
/* data size */
if (secsize < sem_info_length)