summaryrefslogtreecommitdiffhomepage
path: root/src/port
diff options
context:
space:
mode:
Diffstat (limited to 'src/port')
-rw-r--r--src/port/ntapi_port_name_helper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/port/ntapi_port_name_helper.c b/src/port/ntapi_port_name_helper.c
index 369cbd4..eb61d38 100644
--- a/src/port/ntapi_port_name_helper.c
+++ b/src/port/ntapi_port_name_helper.c
@@ -82,11 +82,11 @@ int32_t __stdcall __ntapi_tt_port_generate_keys(
nt_large_integer systime;
nt_luid luid;
- status = __ntapi->zw_query_system_time(&systime);
- if (status) return status;
+ if ((status = __ntapi->zw_query_system_time(&systime)))
+ return status;
- status = __ntapi->zw_allocate_locally_unique_id(&luid);
- if (status) return status;
+ if ((status = __ntapi->zw_allocate_locally_unique_id(&luid)))
+ return status;
keys->key[0] = pe_get_current_process_id();
keys->key[1] = pe_get_current_thread_id();