-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browse buttons crash when running as admin #8957
Comments
Did a bit of digging on this one. Here's my findings: Relevant PR: #8391 The culprit is this call right here:
I'm not exactly sure what is going on though. Looks like Assigning @DHowett for now to provide some ideas/insight on next steps. |
You’re gonna need to give me that HRESULT! I’m guessing this is the same class of problem as “i can’t drag tabs in admin mode”. Same team, same APIs... |
I'm now betting #8950 is extremely related. It didn't matter if it was elevated or not so I think invalid paths are still an issue that likely correlate to this bug. Perhaps they have the same fix (one can hope). |
|
@DHowett friendly bump on this thread to get it on your radar |
Using Pickers from an elevated application yields an ERROR_ACCESS_DENIED. Of course it does: it was designed for the modern app platform. Using the common dialog infrastructure has some downsides¹, but it doesn't crash and is just as flexible. Fixes #8957 ¹ You've got to use raw COM, and it runs in-proc instead of out-of-proc.
Using Pickers from an elevated application yields an ERROR_ACCESS_DENIED. Of course it does: it was designed for the modern app platform. Using the common dialog infrastructure has some downsides¹, but it doesn't crash and is just as flexible. I've added some fun templated functions that help us with the complexity. Fixes #8957 ¹You've got to use raw COM, and it runs in-proc instead of out-of-proc. ## Validation Steps Performed I tested every picker.
Using Pickers from an elevated application yields an ERROR_ACCESS_DENIED. Of course it does: it was designed for the modern app platform. Using the common dialog infrastructure has some downsides¹, but it doesn't crash and is just as flexible. I've added some fun templated functions that help us with the complexity. Fixes #8957 ¹You've got to use raw COM, and it runs in-proc instead of out-of-proc. I tested every picker. (cherry picked from commit 959c423)
🎉This issue was addressed in #9760, which has now been successfully released as Handy links: |
🎉This issue was addressed in #9760, which has now been successfully released as Handy links: |
The optional graphical settings editor worked properly when I ran Windows Terminal as a regular user. However, if I ran Windows Terminal as Administrator, the app would crash if I clicked the "Browse..." button for either "Command line" or "Starting directory".
Originally posted by @huang63 in #6800 (comment)
The text was updated successfully, but these errors were encountered: