Skip to content
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

On Windows, do not degenerate working directory through restarts #251

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MMulthaupt
Copy link
Collaborator

@MMulthaupt MMulthaupt commented Apr 19, 2021

Call WNetGetUniversalNameW() on Windows to see if lexically different paths may be semantically equivalent.
Contains the usual ritual of wrapping WINAPI behavior with some sanitization. (I am looking at you, ERROR_EXTENDED_ERROR and ERROR_MORE_DATA)

https://docs.microsoft.com/en-us/windows/win32/api/winnetwk/nf-winnetwk-wnetgetuniversalnamew

Fixes #231

@MMulthaupt MMulthaupt force-pushed the bug-231-appdata-network-path branch 2 times, most recently from c6c498c to 34760af Compare April 20, 2021 15:42
@setlog setlog deleted a comment from hound bot Apr 20, 2021
@setlog setlog deleted a comment from hound bot Apr 20, 2021
…ing command execution failure when APPDATA is a drive name-based path which maps to a UNC share
@MMulthaupt MMulthaupt marked this pull request as ready for review April 21, 2021 13:23
@dragetd dragetd self-requested a review July 20, 2021 12:02
Copy link
Member

@dragetd dragetd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing CHANGELOG entry.

We should also check if this fixes a bug we encounted due to someone having a lower case drive letter under HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

@dragetd dragetd changed the base branch from develop to master August 23, 2021 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

If APPDATA resolves to a network path, the application might fail to launch
2 participants