http://bugs.winehq.org/show_bug.cgi?id=18980
--- Comment #1 from Anastasius Focht focht@gmx.net 2009-06-17 14:40:58 --- Hello,
after reading some MSDN example code my assumption that GetTokenInformation() is the one to be blamed here might be wrong. The problematic one could also be GetSidSubAuthorityCount().
Maybe someone can extend the conformance test for GetTokenInformation() and check last error after successful retrieval with correct buffer size if it's still the same (ERROR_INSUFFICIENT_BUFFER from first call to query buffer size)? Also a test for GetSidSubAuthorityCount() to check for last error modification might be useful.
The app doesn't make any additional API calls in between that sub authority comparison loop hence one of both must be guilty ;-)
Regards