From 273d6442b8579adf50ea8dae1a3068610eed67bd Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 21 Aug 2016 14:18:19 -0400 Subject: __ntapi_tt_port_generate_keys(): code maintenance: coding style. --- src/port/ntapi_port_name_helper.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3