win: remove unneeded condition

The size is checked beforehand, no need to check it again.

PR-URL: https://github.com/libuv/libuv/pull/859
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Saúl Ibarra Corretgé 2016-05-05 20:27:10 +01:00
parent 46d84eae28
commit e397caa3a6

View File

@ -124,7 +124,7 @@ int uv_exepath(char* buffer, size_t* size_ptr) {
utf16_buffer,
-1,
buffer,
*size_ptr > INT_MAX ? INT_MAX : (int) *size_ptr,
(int) *size_ptr,
NULL,
NULL);
if (utf8_len == 0) {