http://bugs.winehq.org/show_bug.cgi?id=10612
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bunglehead@gmail.com
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com 2009-01-14 20:52:21 --- I can't reproduce this on wine-1.1.12-586-g8b10dd2. First call LookupAccountNameA returns length including NULL and the second one returns copied characters count without NULL.
Daniel, could you be more specific about argument set - I've tested this on WinXP SP2 with NULL account name and it matches Wine behavior here:
--- 1st call LookupAccountNameA(NULL, NULL, NULL, &sid_size, NULL, &domain_size, &sid_use); --- 2nd call /* try NULL account name */ LookupAccountNameA(NULL, NULL, psid, &sid_size, domain, &domain_size, &sid_use); ---
Example taken from current test_LookupAccountName from advapi32/tests.