summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-12-15 17:08:05 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-06-24 22:49:18 +0200
commitecea7536893da487c6d38d29223150d3025d6068 (patch)
tree1f3cbd8a1253b09af34a993a7167cffe2cb5c48b
parentbfb5d3ffbb761e4cd18a77c8734dd1fcfae7f014 (diff)
downloadcygnal-ecea7536893da487c6d38d29223150d3025d6068.tar.gz
cygnal-ecea7536893da487c6d38d29223150d3025d6068.tar.bz2
cygnal-ecea7536893da487c6d38d29223150d3025d6068.zip
sec_auth.cc: Drop prototype for CreateProfile, don't expect failed autoload
-rw-r--r--winsup/cygwin/sec_auth.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/winsup/cygwin/sec_auth.cc b/winsup/cygwin/sec_auth.cc
index a3fbece40..817c541aa 100644
--- a/winsup/cygwin/sec_auth.cc
+++ b/winsup/cygwin/sec_auth.cc
@@ -218,13 +218,6 @@ get_user_profile_directory (PCWSTR sidstr, PWCHAR path, SIZE_T path_len)
return path;
}
-/* The CreateProfile prototype is for some reason missing in our w32api headers,
- even though it's defined upstream since Dec-2013. */
-extern "C" {
- HRESULT WINAPI CreateProfile (LPCWSTR pszUserSid, LPCWSTR pszUserName,
- LPWSTR pszProfilePath, DWORD cchProfilePath);
-}
-
/* Load user profile if it's not already loaded. If the user profile doesn't
exist on the machine, and if we're running Vista or later, try to create it.
@@ -258,13 +251,11 @@ load_user_profile (HANDLE token, struct passwd *pw, cygpsid &usersid)
/* Check if the local profile dir has already been created. */
if (!get_user_profile_directory (sid, userpath, MAX_PATH))
{
- /* No, try to create it. This function exists only on Vista and later. */
+ /* No, try to create it. */
HRESULT res = CreateProfile (sid, username, userpath, MAX_PATH);
if (res != S_OK)
{
- /* If res is 1 (S_FALSE), autoloading failed (XP or 2K3). */
- if (res != S_FALSE)
- debug_printf ("CreateProfile, HRESULT %x", res);
+ debug_printf ("CreateProfile, HRESULT %x", res);
return NULL;
}
}