From bf523f896bbd151328e1e8816601489ea1c7472e Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 3 Sep 2019 02:37:32 +0000 Subject: __ntapi_tt_parse_cmd_line_args_utf16(): use correct invalid parameter ordinals. --- src/argv/ntapi_tt_argv_envp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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); -- cgit v1.2.3