summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-11 15:21:18 -0400
committermidipix <writeonce@midipix.org>2016-05-14 07:18:26 -0400
commit858b955da608a5bca2c75651bb58137e7cad850c (patch)
tree6ff257f86dc05a20e06017b9b413e5d43f7b6ac7 /src
parent266ff019828cb87840fc6a2e9a8ac74e64fd98da (diff)
downloadntapi-858b955da608a5bca2c75651bb58137e7cad850c.tar.bz2
ntapi-858b955da608a5bca2c75651bb58137e7cad850c.tar.xz
__ntapi_pty_query(), __ntapi_pty_set(): remove an always-false comparison.
Diffstat (limited to 'src')
-rw-r--r--src/pty/ntapi_pty_query.c2
-rw-r--r--src/pty/ntapi_pty_set.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pty/ntapi_pty_query.c b/src/pty/ntapi_pty_query.c
index 21ade12..6754c77 100644
--- a/src/pty/ntapi_pty_query.c
+++ b/src/pty/ntapi_pty_query.c
@@ -24,7 +24,7 @@ int32_t __stdcall __ntapi_pty_query(
uintptr_t * info;
nt_pty_inherit_info * inherit;
- if ((pty_info_class<NT_PTY_BASIC_INFORMATION) || (pty_info_class>=NT_PTY_INFORMATION_CAP))
+ if (pty_info_class>=NT_PTY_INFORMATION_CAP)
return NT_STATUS_INVALID_INFO_CLASS;
else if (pty_info_class == NT_PTY_BASIC_INFORMATION)
return NT_STATUS_NOT_IMPLEMENTED;
diff --git a/src/pty/ntapi_pty_set.c b/src/pty/ntapi_pty_set.c
index 9c5af44..27f022f 100644
--- a/src/pty/ntapi_pty_set.c
+++ b/src/pty/ntapi_pty_set.c
@@ -22,7 +22,7 @@ int32_t __stdcall __ntapi_pty_set(
nt_pty_sigctl_msg msg;
uintptr_t * info;
- if ((pty_info_class<NT_PTY_BASIC_INFORMATION) || (pty_info_class>=NT_PTY_INFORMATION_CAP))
+ if (pty_info_class>=NT_PTY_INFORMATION_CAP)
return NT_STATUS_INVALID_INFO_CLASS;
else if (pty_info_class == NT_PTY_BASIC_INFORMATION)
return NT_STATUS_NOT_IMPLEMENTED;