-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Utility: handle Path::{configuration,home}Directory() failures on Win…
…dows. These can happen on system accounts without a home folder, for example. Seems like I didn't read the documentation properly when I made this into an assert in e1e813e. Original code had a *silly* check for the appdata path being empty, and since e1e813e failing in that case, but the check dates back to e1e813e from 2011, and unfortunately I don't remember what was the logic behind it back then. Windows XP compatibility or some such? Instead, it's now morphed into checking the result of SHGetFolderPathW(). Hopefully that won't cause some other regression again.
- Loading branch information
Showing
2 changed files
with
50 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters