summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-12-05 11:41:19 +0000
committermidipix <writeonce@midipix.org>2020-12-05 11:45:47 +0000
commitca05bb3ec82978849dc1facd3291efb160a61d83 (patch)
tree02d905c6ea38910ec015ddbba8d34e3e53d8e033
parent97b89a73a8d5b541d8e5cd7a7a276a07c75877ed (diff)
downloadntapi-ca05bb3ec82978849dc1facd3291efb160a61d83.tar.bz2
ntapi-ca05bb3ec82978849dc1facd3291efb160a61d83.tar.xz
__ntapi_sem_query(): adjust code formatting.
-rw-r--r--src/sem/ntapi_sem_query.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sem/ntapi_sem_query.c b/src/sem/ntapi_sem_query.c
index 35d3384..54e934f 100644
--- a/src/sem/ntapi_sem_query.c
+++ b/src/sem/ntapi_sem_query.c
@@ -76,11 +76,12 @@ int32_t __stdcall __ntapi_sem_query(
} else if ((status = __ntapi->ipc_init_section_by_port(
sem->hport,&hsection,
- &secaddr,&secsize)))
+ &secaddr,&secsize))) {
return status;
- else
+ } else {
mapaddr = secaddr;
+ }
/* lock */
hlock = &(__ntapi_internals()->hlock);