Cygwin: use NULL security descriptor in InitializeObjectAttributes
Using sec_none{_nih} is just a roundabout way to specify a NULL SD. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@ -145,8 +145,7 @@ CreateMapping (HANDLE fhdl, size_t len, off_t off, DWORD openflags,
|
||||
ULONG attributes = attached (prot) ? SEC_RESERVE : SEC_COMMIT;
|
||||
|
||||
OBJECT_ATTRIBUTES oa;
|
||||
InitializeObjectAttributes (&oa, NULL, OBJ_INHERIT, NULL,
|
||||
sec_none.lpSecurityDescriptor);
|
||||
InitializeObjectAttributes (&oa, NULL, OBJ_INHERIT, NULL, NULL);
|
||||
|
||||
if (fhdl == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
|
Reference in New Issue
Block a user