ge@gse.nl writes:
Incorporates feedback by Juan Lang
Changelog: Ge van Geldorp ge@thinstall.com
Please either put your full name in the mail headers, or include the full git headers in the body of your message, so that my commit script can grab your name and email automatically.
@@ -1382,14 +1476,15 @@ static HRESULT _SHGetUserProfilePath(HANDLE hToken, DWORD dwFlags, BYTE folder, return E_INVALIDARG;
/* Only the current user and the default user are supported right now
* I'm afraid.
* I'm afraid. We do handle the case where the token references the
* current user. * FIXME: should be able to call GetTokenInformation on the token, * then call ConvertSidToStringSidW on it to get the user prefix. * But Wine's registry doesn't store user info by sid, it stores it * by user name (and I don't know how to convert from a token to a * user name).
This comment is obsolete, we store the registry by sid now, so this is what you should use to open the user's key.