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:
parent
46d84eae28
commit
e397caa3a6
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user