8213583: Error while opening the JFileChooser when desktop contains shortcuts pointing to deleted files

Reviewed-by: kaddepalli, aivanov, serb
This commit is contained in:
Dmitry Markov 2018-11-29 15:17:58 +00:00
parent 3b08bdb0c7
commit 8a217022ca

View File

@ -745,7 +745,7 @@ JNIEXPORT jlong JNICALL Java_sun_awt_shell_Win32ShellFolder2_getLinkLocation
hres = ppf->Load(wstr, STGM_READ);
if (SUCCEEDED(hres)) {
if (resolve) {
hres = psl->Resolve(NULL, 0);
hres = psl->Resolve(NULL, SLR_NO_UI);
// Ignore failure
}
pidl = (LPITEMIDLIST)NULL;