summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-11 12:01:44 -0400
committermidipix <writeonce@midipix.org>2016-05-14 07:18:26 -0400
commit77a5639d60ea60c3628fd009bb97d5c74a097352 (patch)
treea680cf07c7d74b36f8fb86e769ae53baef8ee250 /src
parentd8a833cf3e76a8389c3e621cc7c9958c3eb866b7 (diff)
downloadntapi-77a5639d60ea60c3628fd009bb97d5c74a097352.tar.bz2
ntapi-77a5639d60ea60c3628fd009bb97d5c74a097352.tar.xz
__ntapi_tt_get_argv_envp_utf16(): properly handle signedness.
Diffstat (limited to 'src')
-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 586393e..520254d 100644
--- a/src/argv/ntapi_tt_argv_envp.c
+++ b/src/argv/ntapi_tt_argv_envp.c
@@ -360,7 +360,7 @@ int32_t __stdcall __ntapi_tt_get_argv_envp_utf16(
if (status) return status;
/* argv[] needs a terminating null pointer */
- if (main_params->argc == main_params->argv_envp_ptr_total)
+ if ((unsigned)main_params->argc == main_params->argv_envp_ptr_total)
return NT_STATUS_BUFFER_TOO_SMALL;
/* set idx to the envp[0] array index */