From 77a5639d60ea60c3628fd009bb97d5c74a097352 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 11 May 2016 12:01:44 -0400 Subject: __ntapi_tt_get_argv_envp_utf16(): properly handle signedness. --- src/argv/ntapi_tt_argv_envp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/argv') 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 */ -- cgit v1.2.3