Lines Matching refs:path
117 /* Get the path as UTF-16. */
265 /* Windows stores the drive-local path in an "hidden" environment variable,
294 /* Doesn't look like a drive letter could be there - probably an UNC path.
1120 wchar_t *path;
1134 path = uv__malloc(len * sizeof(wchar_t));
1135 if (path == NULL) {
1138 len = GetTempPathW(len, path);
1141 uv__free(path);
1147 if (path[len - 1] == L'\\' &&
1148 !(len == 3 && path[1] == L':')) {
1150 path[len] = L'\0';
1154 bufsize = WideCharToMultiByte(CP_UTF8, 0, path, -1, NULL, 0, NULL, NULL);
1157 uv__free(path);
1160 uv__free(path);
1168 path,
1174 uv__free(path);
1294 wchar_t *path;
1313 path = uv__malloc(bufsize * sizeof(wchar_t));
1314 if (path == NULL) {
1319 if (!GetUserProfileDirectoryW(token, path, &bufsize)) {
1322 uv__free(path);
1332 uv__free(path);
1342 r = uv__convert_utf16_to_utf8(path, -1, &pwd->homedir);
1343 uv__free(path);