summaryrefslogtreecommitdiffhomepage
path: root/src/argv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-08-29 03:27:24 +0000
committermidipix <writeonce@midipix.org>2019-08-29 03:27:24 +0000
commitf96e1d2fa751d70baccb09fcbc052ea59854d685 (patch)
treef8797b4d23f4f813f6e8e66cb3f762dc2f6a5818 /src/argv
parent8344385d981142f4e9ac8328befffb275d3ab411 (diff)
downloadntapi-f96e1d2fa751d70baccb09fcbc052ea59854d685.tar.bz2
ntapi-f96e1d2fa751d70baccb09fcbc052ea59854d685.tar.xz
__ntapi_tt_parse_cmd_line_args_utf16(): arg_count: fix alignment check logic.
Diffstat (limited to 'src/argv')
-rw-r--r--src/argv/ntapi_tt_argv_envp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argv/ntapi_tt_argv_envp.c b/src/argv/ntapi_tt_argv_envp.c
index f8fe8b9..6be29c0 100644
--- a/src/argv/ntapi_tt_argv_envp.c
+++ b/src/argv/ntapi_tt_argv_envp.c
@@ -139,7 +139,7 @@ int32_t __stdcall __ntapi_tt_parse_cmd_line_args_utf16(
else if (__NT_IS_MISALIGNED_LENGTH(argv_buffer_len))
return NT_STATUS_INVALID_PARAMETER_6;
- else if (__NT_IS_MISALIGNED_BUFFER(arg_count))
+ else if (__NT_IS_MISALIGNED_INT_BUFFER(arg_count))
return NT_STATUS_INVALID_PARAMETER_7;
/* zero-out the aligned buffers */