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)