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:
Corinna Vinschen
2019-02-25 21:06:15 +01:00
parent 98afd02be3
commit 3b3ba558e9
3 changed files with 4 additions and 8 deletions

View File

@ -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)
{