提交 0ad3b0ff 编写于 作者: P phh

8213583: Error while opening the JFileChooser when desktop contains shortcuts...

8213583: Error while opening the JFileChooser when desktop contains shortcuts pointing to deleted files.
Summary: Use SLR_NO_UI flag to suppress any system dialogs during IShellLinkW::Resolve invocation.
Reviewed-by: kaddepalli, aivanov, serb
上级 03461177
/*
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......@@ -692,7 +692,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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册