Use Windows Vista API to get the user's home directory
authorPawel Bylica <chfast@gmail.com>
Fri, 16 Oct 2015 09:08:59 +0000 (09:08 +0000)
committerPawel Bylica <chfast@gmail.com>
Fri, 16 Oct 2015 09:08:59 +0000 (09:08 +0000)
commit2f01bc86e5c3d33d16e35a45a5b0da9f05415adb
treead898ddb561b91b30c30022a7dcf317f95a22094
parent0f31d547ebc0f302085ff0046cdfae99710b0f76
Use Windows Vista API to get the user's home directory

Summary: This patch replaces usage of deprecated SHGetFolderPathW with SHGetKnownFolderPath. The usage of SHGetKnownFolderPath is wrapped to allow queries for other "known" folders in the near future.

Reviewers: aaron.ballman, gbedwell

Subscribers: chapuni, llvm-commits

Differential Revision: http://reviews.llvm.org/D13753

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250501 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Windows/Path.inc
unittests/Support/Path.cpp