[PATCH 09/12] (resend) LookupAccountNameW() - only first user account and well known SIDs accepted

Paul Bryan Roberts pbronline-wine at yahoo.co.uk
Tue Oct 21 01:29:56 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 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

Actually, that should read "... any not-so-well-known SID account ...".

By doing so, three more conformance test failures become passes.

This patch should have been two.

The second half throws in a test to reject any request for anything
other than the local system.  This was copied from LookupAccountSidW().
When a conformance test was added for this, it was found to be returning
the wrong error code.  Another conformance test showed that
LookupAccountSidW() too was returning the wrong error code.

New conformance test verified against W2K SP4.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0009-LookupAccountNameW-only-first-user-account-and-wel.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20081021/53cb44ba/attachment.txt 

More information about the wine-patches mailing list