AllocateAndInitializeSid does not work on Win98.

This commit is contained in:
Jakob Eriksson 2004-11-03 22:14:55 +00:00 committed by Alexandre Julliard
parent dca6bdf5c4
commit 2a798e5f31

View File

@ -133,13 +133,15 @@ void test_trustee()
{
TRUSTEE trustee;
PSID psid;
DWORD r;
LPSTR str = "2jjj";
SID_IDENTIFIER_AUTHORITY auth = { {0x11,0x22,0,0,0, 0} };
r = AllocateAndInitializeSid( &auth, 1, 42, 0,0,0,0,0,0,0,&psid );
ok( r, "failed to init SID\n" );
if ( ! AllocateAndInitializeSid( &auth, 1, 42, 0,0,0,0,0,0,0,&psid ) )
{
trace( "failed to init SID\n" );
return;
}
memset( &trustee, 0xff, sizeof trustee );
BuildTrusteeWithSidA( &trustee, psid );