advapi32: Set values to 0 in LsaEnumerateAccountRights

Ge van Geldorp ge at
Tue Jun 16 06:00:35 CDT 2009

This fixes
Rights are usually assigned to groups, not directly to user accounts. When
you pass the SID of a user account to LsaEnumerateAccountRights() and that
user account does not have privileges explicitly assigned to it the
function will return STATUS_OBJECT_NAME_NOT_FOUND. However, Windows will
also set the Rights and RightsCount values to NULL/0. The installer in bug
18797 depends on that behavior.
Also adding test case for this.

  advapi32: Set values to 0 in LsaEnumerateAccountRights

 dlls/advapi32/lsa.c       |    2 ++
 dlls/advapi32/tests/lsa.c |   45
 2 files changed, 43 insertions(+), 4 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 598e3fe02588d7644b2c6a0302f352e53e5584e3.diff
Type: text/x-patch
Size: 5271 bytes
Desc: not available
URL: <>

More information about the wine-patches mailing list