19 Oct
2022
19 Oct
'22
2:12 p.m.
On Wed Oct 19 14:00:21 2022 +0000, Piotr Caban wrote:
There already is a test that cover this case: ``` memcpy(buffer, "abcdefgh", sizeof("abcdefgh")); errno = EBADF; ret = p_mbsupr_s(buffer, sizeof("abcdefgh") - 1); ok(ret == EINVAL, "Expected _mbsupr_s to return EINVAL, got %d\n", ret); ok(errno == EINVAL, "Expected errno to be EINVAL, got %d\n", errno); ``` or am I missing something? The function uses MSVCRT_CHECK_PMT macro to handle the error (it will return EINVAL in msvcrt and throw exception in newer versions). yes, true. Thanks for explanation.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1090#note_11345