On Thu, 25 Aug 2022 08:02:00 GMT, Matthias Baesken <[email protected]> wrote:

> https://docs.microsoft.com/en-us/windows/win32/api/stringapiset/nf-stringapiset-multibytetowidechar
> states about MultiByteToWideChar : "The function returns 0 if it does not 
> succeed" and lists a few failure cases.
> However we miss checking the failure case in 
> Java_sun_awt_shell_Win32ShellFolder2_getLinkLocation , seems we assume the 
> function always works nicely (in most of the JDK coding the return value is 
> checked ).

This pull request has now been integrated.

Changeset: 699c4296
Author:    Matthias Baesken <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/699c42962eeaa6aa950ad86c2dd1f77316a1da3e
Stats:     10 lines in 1 file changed: 7 ins; 0 del; 3 mod

8292866: Java_sun_awt_shell_Win32ShellFolder2_getLinkLocation check 
MultiByteToWideChar return value for failures

Reviewed-by: mdoerr, stuefe

-------------

PR: https://git.openjdk.org/jdk/pull/10015

Reply via email to