This presumably always wanted to check for SAL_MAX_UINT16, not USHRT_MAX
The check against USHRT_MAX was introduced together with a following nLen2 = static_cast<UINT16>(nLen); in 73f043c4 "#96155# #i1858# merge branch and remove warnings" (and that UINT16 meanwhile replaced with sal_uInt16). Change-Id: I61346e4ffc90a4f8a97c2d3f822d619faa5b0008 Reviewed-on: https://gerrit.libreoffice.org/48441Tested-by:Jenkins <ci@libreoffice.org> Reviewed-by:
Stephan Bergmann <sbergman@redhat.com>
Showing
Please
register
or
sign in
to comment