From 273d6442b8579adf50ea8dae1a3068610eed67bd Mon Sep 17 00:00:00 2001 From: midipix Date: Aug 22 2016 13:00:00 +0000 Subject: __ntapi_tt_port_generate_keys(): code maintenance: coding style. --- 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();