[PATCH 04/12] LookupAccountNameW() - use ACCOUNT_SIDS domain and name_use fields for well known SIDS

Paul Bryan Roberts pbronline-wine at yahoo.co.uk
Mon Oct 20 18:04:29 CDT 2008


LookupAccountNameW() has a stubbed but non-empty, incomplete, buggy 
implementation.  It fails a number of unit tests but Wine code relies on 
this.

This is series of patches that provide what may be a reasonable first 
pass implementation of LookupAccountNameA() and LookupAccountNameW() that:

   - passes existing units tests for LookupAccountName
   - works for well known SIDs
   - works for 'first user account'
   - allows progress towards the resolution of Bug 14334

This patch replaces the stub implementation for well-known SIDs with 
code that uses the ACCOUNT_SIDS domain and name_use fields.

This patch is conformance test neutral.

While this patch may not be obviously incorrect, it is not correct - it 
assumes, as the code replaces did, that CreateWellKnownSid() treated 
cbSid the same way it does.  This is corrected later in the series.
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-LookupAccountNameW-use-ACCOUNT_SIDS-domain-and-n.patch
Type: text/x-diff
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081021/e2ff0467/attachment.patch 


More information about the wine-patches mailing list