diff options
author | midipix <writeonce@midipix.org> | 2019-07-22 23:44:36 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-07-23 03:20:47 +0000 |
commit | 2ea2dee24c85511ca13cd556c99565cca4d39765 (patch) | |
tree | f26edc4df206a40e18e91bd6bf48721358c7ddfe /src/tty | |
parent | 96f6a0e0ae44883a28ddd8fd8793283fe1f1dacc (diff) | |
download | ntapi-2ea2dee24c85511ca13cd556c99565cca4d39765.tar.bz2 ntapi-2ea2dee24c85511ca13cd556c99565cca4d39765.tar.xz |
__ntapi_tty_connect(): remove oa variable and initialization (not used).
Diffstat (limited to 'src/tty')
-rw-r--r-- | src/tty/ntapi_tty_connect.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/tty/ntapi_tty_connect.c b/src/tty/ntapi_tty_connect.c index 3dd611c..87d098f 100644 --- a/src/tty/ntapi_tty_connect.c +++ b/src/tty/ntapi_tty_connect.c @@ -16,7 +16,6 @@ int32_t __stdcall __ntapi_tty_connect( __in wchar16_t * tty_port_name, __in int32_t impersonation_level) { - nt_object_attributes oa; nt_unicode_string name; nt_security_quality_of_service sqos; @@ -28,20 +27,7 @@ int32_t __stdcall __ntapi_tty_connect( sqos.context_tracking_mode = NT_SECURITY_TRACKING_DYNAMIC; sqos.effective_only = 1; - oa.len = sizeof(oa); - oa.root_dir = (void *)0; - oa.obj_name = &name; - oa.obj_attr = 0; - oa.sec_desc = (nt_security_descriptor *)0; - oa.sec_qos = &sqos; - return __ntapi->zw_connect_port( - hport, - &name, - &sqos, - (nt_port_section_write *)0, - (nt_port_section_read *)0, - (uint32_t *)0, - (void *)0, - (uint32_t *)0); + hport,&name,&sqos, + 0,0,0,0,0); } |