Prefer %userprofile% to %homedrive% and %homepath% for home directory location on...
[dcpomatic.git] / src / lib / cross_windows.cc
index 486e9b5d588748cc56d738f035edfbdfd084103b..723828d7e235dce6617e01041389756ad6201620 100644 (file)
@@ -394,7 +394,7 @@ maybe_open_console ()
 boost::filesystem::path
 home_directory ()
 {
-       return boost::filesystem::path(getenv("HOMEDRIVE")) / boost::filesystem::path(getenv("HOMEPATH"));
+       return boost::filesystem::path(getenv("userprofile"));
 }