diff options
author | midipix <writeonce@midipix.org> | 2016-08-21 14:18:19 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-08-22 09:00:00 -0400 |
commit | 273d6442b8579adf50ea8dae1a3068610eed67bd (patch) | |
tree | 34f4f97a0f6ad3a4eca9006d627b66bc39db2eaf /src | |
parent | cb3f2e4c5e529e3f0fcacb542d3f17fd2830903e (diff) | |
download | ntapi-273d6442b8579adf50ea8dae1a3068610eed67bd.tar.bz2 ntapi-273d6442b8579adf50ea8dae1a3068610eed67bd.tar.xz |
__ntapi_tt_port_generate_keys(): code maintenance: coding style.
Diffstat (limited to 'src')
-rw-r--r-- | src/port/ntapi_port_name_helper.c | 8 |
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(); |