home: Consider replacing the deprecated SHGetFolderPathW
with SHGetKnownFolderPath
#13138
Labels
A-home
Area: the `home` crate
O-windows
OS: Windows
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
Currently
home
usesSHGetFolderPathW
to get the home directory on Windows:cargo/crates/home/src/windows.rs
Lines 19 to 26 in bdef274
SHGetFolderPathW
is marked as deprecated and is simply a wrapper aroundSHGetKnownFolderPath
. It might be better to use the not-deprecated function.This would allow
home
to support user directories longer thanMAX_PATH
if, in the future, the OS does. I do however think that's very unlikely so this change isn't that important.The text was updated successfully, but these errors were encountered: