summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-12-05 11:44:28 +0000
committermidipix <writeonce@midipix.org>2020-12-05 11:45:47 +0000
commit3878c0269822e1a1a828a2847a6b84ab6857eb1b (patch)
treee7a0b7e6dd70f6a9daa3afc52c50754932c03d46
parent37da58077db42d7f6c66e53b9ba0dfbe437c7e8a (diff)
downloadntapi-3878c0269822e1a1a828a2847a6b84ab6857eb1b.tar.bz2
ntapi-3878c0269822e1a1a828a2847a6b84ab6857eb1b.tar.xz
__ntapi_sem_set(): adjust code formatting.
-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)