-fix a critical bug in SamGetUserSid

"I wonder how this all has worked with this..." :o)

svn path=/trunk/; revision=24826
This commit is contained in:
Johannes Anderwald 2006-11-25 22:46:03 +00:00
parent 8076cb9096
commit 0b25c86f26

View file

@ -556,7 +556,7 @@ SamGetUserSid (PWSTR UserName,
} }
/* Open the user key */ /* Open the user key */
if (RegOpenKeyExW (hUserKey, if (RegOpenKeyExW (hUsersKey,
UserName, UserName,
0, 0,
KEY_READ, KEY_READ,