* kernel32.cc (CreateEventW): Create event object with EVENT_ALL_ACCESS
access mask. (CreateMutexW): Create mutex object with MUTEX_ALL_ACCESS access mask. (CreateSemaphoreW): Create semaphore object with SEMAPHORE_ALL_ACCESS access mask.
This commit is contained in:
parent
b873ce0686
commit
6b0f100a6d
@ -1,3 +1,11 @@
|
|||||||
|
2010-04-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* kernel32.cc (CreateEventW): Create event object with EVENT_ALL_ACCESS
|
||||||
|
access mask.
|
||||||
|
(CreateMutexW): Create mutex object with MUTEX_ALL_ACCESS access mask.
|
||||||
|
(CreateSemaphoreW): Create semaphore object with SEMAPHORE_ALL_ACCESS
|
||||||
|
access mask.
|
||||||
|
|
||||||
2010-04-15 Corinna Vinschen <corinna@vinschen.de>
|
2010-04-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* sec_helper.cc (set_cygwin_privileges): Enable SE_DEBUG_PRIVILEGE, if
|
* sec_helper.cc (set_cygwin_privileges): Enable SE_DEBUG_PRIVILEGE, if
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* kernel32.cc: Win32 replacement functions.
|
/* kernel32.cc: Win32 replacement functions.
|
||||||
|
|
||||||
Copyright 2008 Red Hat, Inc.
|
Copyright 2008, 2010 Red Hat, Inc.
|
||||||
|
|
||||||
This file is part of Cygwin.
|
This file is part of Cygwin.
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ CreateEventW (LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset,
|
|||||||
lpName ? get_shared_parent_dir () : NULL,
|
lpName ? get_shared_parent_dir () : NULL,
|
||||||
lpEventAttributes
|
lpEventAttributes
|
||||||
? lpEventAttributes->lpSecurityDescriptor : NULL);
|
? lpEventAttributes->lpSecurityDescriptor : NULL);
|
||||||
status = NtCreateEvent (&evt, CYG_EVENT_ACCESS, &attr,
|
status = NtCreateEvent (&evt, EVENT_ALL_ACCESS, &attr,
|
||||||
bManualReset ? NotificationEvent
|
bManualReset ? NotificationEvent
|
||||||
: SynchronizationEvent,
|
: SynchronizationEvent,
|
||||||
bInitialState);
|
bInitialState);
|
||||||
@ -131,7 +131,7 @@ CreateMutexW (LPSECURITY_ATTRIBUTES lpMutexAttributes, BOOL bInitialOwner,
|
|||||||
lpName ? get_shared_parent_dir () : NULL,
|
lpName ? get_shared_parent_dir () : NULL,
|
||||||
lpMutexAttributes
|
lpMutexAttributes
|
||||||
? lpMutexAttributes->lpSecurityDescriptor : NULL);
|
? lpMutexAttributes->lpSecurityDescriptor : NULL);
|
||||||
status = NtCreateMutant (&mtx, CYG_MUTANT_ACCESS, &attr, bInitialOwner);
|
status = NtCreateMutant (&mtx, MUTEX_ALL_ACCESS, &attr, bInitialOwner);
|
||||||
if (!NT_SUCCESS (status))
|
if (!NT_SUCCESS (status))
|
||||||
{
|
{
|
||||||
SetLastError (RtlNtStatusToDosError (status));
|
SetLastError (RtlNtStatusToDosError (status));
|
||||||
@ -222,7 +222,7 @@ CreateSemaphoreW (LPSECURITY_ATTRIBUTES lpSemaphoreAttributes,
|
|||||||
lpSemaphoreAttributes
|
lpSemaphoreAttributes
|
||||||
? lpSemaphoreAttributes->lpSecurityDescriptor
|
? lpSemaphoreAttributes->lpSecurityDescriptor
|
||||||
: NULL);
|
: NULL);
|
||||||
status = NtCreateSemaphore (&sem, CYG_SEMAPHORE_ACCESS, &attr,
|
status = NtCreateSemaphore (&sem, SEMAPHORE_ALL_ACCESS, &attr,
|
||||||
lInitialCount, lMaximumCount);
|
lInitialCount, lMaximumCount);
|
||||||
if (!NT_SUCCESS (status))
|
if (!NT_SUCCESS (status))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user