aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2015-05-28 21:53:18 -0400
committerSaúl Ibarra Corretgé <saghul@gmail.com>2015-06-03 00:26:56 +0200
commita0c8815294faeec87b5f65e84fb8b3a4230af9bc (patch)
treee5c311b93ecaf2530d374ac1ad72d783408527a4 /docs/src
parentd110a1b6c51d4a5b4414462f21c73e4eb4ddba11 (diff)
downloadlibuv-a0c8815294faeec87b5f65e84fb8b3a4230af9bc.tar.gz
libuv-a0c8815294faeec87b5f65e84fb8b3a4230af9bc.zip
win: add XP support to uv_os_homedir()
The previous Windows implementation used SHGetKnownFolderPath(), which is only supported on Vista and up. This commit switches to GetUserProfileDirectoryW(), which returns the same information, but is supported back to Windows 2000, and is not deprecated. PR-URL: https://github.com/libuv/libuv/pull/375 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/misc.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/src/misc.rst b/docs/src/misc.rst
index fb5a8a40..9708c5de 100644
--- a/docs/src/misc.rst
+++ b/docs/src/misc.rst
@@ -272,7 +272,7 @@ API
Gets the current user's home directory. On Windows, `uv_os_homedir()` first
checks the `USERPROFILE` environment variable using
`GetEnvironmentVariableW()`. If `USERPROFILE` is not set,
- `SHGetKnownFolderPath()` is called. On all other operating systems,
+ `GetUserProfileDirectoryW()` is called. On all other operating systems,
`uv_os_homedir()` first checks the `HOME` environment variable using
:man:`getenv(3)`. If `HOME` is not set, :man:`getpwuid_r(3)` is called. The
user's home directory is stored in `buffer`. When `uv_os_homedir()` is