http://bugs.winehq.org/show_bug.cgi?id=24627
--- Comment #7 from Hans Leidekker hans@meelstraat.net 2010-10-05 02:44:25 CDT --- Created an attachment (id=31130) --> (http://bugs.winehq.org/attachment.cgi?id=31130) advapi32: Fix buffer size query in LsaLookupSids.
Yep, LsaLookupSids depended on the broken behavior of LookupAccountSidW. Please try this patch.