summaryrefslogtreecommitdiffhomepage
path: root/src/argv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-09-03 02:37:32 +0000
committermidipix <writeonce@midipix.org>2019-09-03 02:37:32 +0000
commitbf523f896bbd151328e1e8816601489ea1c7472e (patch)
tree3c5068ba6f2a3adc3e905dfac07ac7928b0b9a08 /src/argv
parente91e749b1da85b734d249eec330ce0743a020dd1 (diff)
downloadntapi-bf523f896bbd151328e1e8816601489ea1c7472e.tar.bz2
ntapi-bf523f896bbd151328e1e8816601489ea1c7472e.tar.xz
__ntapi_tt_parse_cmd_line_args_utf16(): use correct invalid parameter ordinals.
Diffstat (limited to 'src/argv')
-rw-r--r--src/argv/ntapi_tt_argv_envp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/argv/ntapi_tt_argv_envp.c b/src/argv/ntapi_tt_argv_envp.c
index 6be29c0..722ab87 100644
--- a/src/argv/ntapi_tt_argv_envp.c
+++ b/src/argv/ntapi_tt_argv_envp.c
@@ -128,19 +128,19 @@ int32_t __stdcall __ntapi_tt_parse_cmd_line_args_utf16(
return NT_STATUS_INVALID_PARAMETER_1;
else if (__NT_IS_MISALIGNED_BUFFER(args_buffer))
- return NT_STATUS_INVALID_PARAMETER_2;
+ return NT_STATUS_INVALID_PARAMETER_3;
else if (__NT_IS_MISALIGNED_LENGTH(args_buffer_len))
- return NT_STATUS_INVALID_PARAMETER_3;
+ return NT_STATUS_INVALID_PARAMETER_4;
else if (__NT_IS_MISALIGNED_BUFFER(argv_buffer))
- return NT_STATUS_INVALID_PARAMETER_5;
+ return NT_STATUS_INVALID_PARAMETER_6;
else if (__NT_IS_MISALIGNED_LENGTH(argv_buffer_len))
- return NT_STATUS_INVALID_PARAMETER_6;
+ return NT_STATUS_INVALID_PARAMETER_7;
else if (__NT_IS_MISALIGNED_INT_BUFFER(arg_count))
- return NT_STATUS_INVALID_PARAMETER_7;
+ return NT_STATUS_INVALID_PARAMETER_2;
/* zero-out the aligned buffers */
__ntapi->tt_aligned_block_memset(args_buffer,0,args_buffer_len);