From a85003772538ed70010cfce1b9133371b8a47563 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sat, 24 May 2014 06:44:22 +0000 Subject: [PATCH] [shell32] sync _SHGetUserProfilePath with wine svn path=/trunk/; revision=63427 --- reactos/dll/win32/shell32/shellpath.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/dll/win32/shell32/shellpath.cpp b/reactos/dll/win32/shell32/shellpath.cpp index de7e7e72ef7..7d2c2f0d8bb 100644 --- a/reactos/dll/win32/shell32/shellpath.cpp +++ b/reactos/dll/win32/shell32/shellpath.cpp @@ -1171,6 +1171,11 @@ static HRESULT _SHGetUserProfilePath(HANDLE hToken, DWORD dwFlags, BYTE folder, if (dwFlags & SHGFP_TYPE_DEFAULT) { + if (hToken != NULL && hToken != (HANDLE)-1) + { + FIXME("unsupported for user other than current or default\n"); + return E_FAIL; + } hr = _SHGetDefaultValue(folder, pszPath); } else