Commit 2a798e5f authored by Jakob Eriksson's avatar Jakob Eriksson Committed by Alexandre Julliard

AllocateAndInitializeSid does not work on Win98.

parent dca6bdf5
...@@ -133,13 +133,15 @@ void test_trustee() ...@@ -133,13 +133,15 @@ void test_trustee()
{ {
TRUSTEE trustee; TRUSTEE trustee;
PSID psid; PSID psid;
DWORD r;
LPSTR str = "2jjj"; LPSTR str = "2jjj";
SID_IDENTIFIER_AUTHORITY auth = { {0x11,0x22,0,0,0, 0} }; SID_IDENTIFIER_AUTHORITY auth = { {0x11,0x22,0,0,0, 0} };
r = AllocateAndInitializeSid( &auth, 1, 42, 0,0,0,0,0,0,0,&psid ); if ( ! AllocateAndInitializeSid( &auth, 1, 42, 0,0,0,0,0,0,0,&psid ) )
ok( r, "failed to init SID\n" ); {
trace( "failed to init SID\n" );
return;
}
memset( &trustee, 0xff, sizeof trustee ); memset( &trustee, 0xff, sizeof trustee );
BuildTrusteeWithSidA( &trustee, psid ); BuildTrusteeWithSidA( &trustee, psid );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment