changeset 52989:c8071863df80

8213583: Error while opening the JFileChooser when desktop contains shortcuts pointing to deleted files Reviewed-by: kaddepalli, aivanov, serb
author dmarkov
date Thu, 29 Nov 2018 15:17:58 +0000
parents 4e9739110cf1
children 15237f57cbf8
files src/java.desktop/windows/native/libawt/windows/ShellFolder2.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/windows/native/libawt/windows/ShellFolder2.cpp	Thu Nov 29 15:21:10 2018 +0530
+++ b/src/java.desktop/windows/native/libawt/windows/ShellFolder2.cpp	Thu Nov 29 15:17:58 2018 +0000
@@ -745,7 +745,7 @@
             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;