The fix for a regression caused by the https://bugs.openjdk.org/browse/JDK-6508941. it does not take into account RPC_E_CHANGED_MODE when COM was already initialized using COINIT_MULTITHREADED mode.
@aivanov-jdk please take a look. ------------- Commit messages: - 8270269: Desktop.browse method fails if earlier CoInitialize call as COINIT_MULTITHREADED Changes: https://git.openjdk.org/jdk/pull/17010/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17010&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8270269 Stats: 6 lines in 1 file changed: 2 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/17010.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17010/head:pull/17010 PR: https://git.openjdk.org/jdk/pull/17010