8213583: Error while opening the JFileChooser when desktop contains shortcuts pointing to deleted files
authordmarkov
Thu, 29 Nov 2018 15:17:58 +0000
changeset 52832 c8071863df80
parent 52831 4e9739110cf1
child 52833 15237f57cbf8
8213583: Error while opening the JFileChooser when desktop contains shortcuts pointing to deleted files Reviewed-by: kaddepalli, aivanov, serb
src/java.desktop/windows/native/libawt/windows/ShellFolder2.cpp
--- 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;