diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-04-15 21:20:59 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-04-15 21:20:59 +0400 |
commit | 6b0f100a6dd94d995a5d66aec0a1c4822e069435 (patch) | |
tree | d479da9a31630aeae2e1757ac0cd84692eadfd54 /winsup/cygwin/kernel32.cc | |
parent | b873ce06860d4ec631c9135dabdea2b6b4446d6e (diff) |
* 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.
Diffstat (limited to 'winsup/cygwin/kernel32.cc')
-rw-r--r-- | winsup/cygwin/kernel32.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/kernel32.cc b/winsup/cygwin/kernel32.cc index 6af0ddb2e..f8fd728cd 100644 --- a/winsup/cygwin/kernel32.cc +++ b/winsup/cygwin/kernel32.cc @@ -1,6 +1,6 @@ /* kernel32.cc: Win32 replacement functions. - Copyright 2008 Red Hat, Inc. + Copyright 2008, 2010 Red Hat, Inc. This file is part of Cygwin. @@ -37,7 +37,7 @@ CreateEventW (LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, lpName ? get_shared_parent_dir () : NULL, lpEventAttributes ? lpEventAttributes->lpSecurityDescriptor : NULL); - status = NtCreateEvent (&evt, CYG_EVENT_ACCESS, &attr, + status = NtCreateEvent (&evt, EVENT_ALL_ACCESS, &attr, bManualReset ? NotificationEvent : SynchronizationEvent, bInitialState); @@ -131,7 +131,7 @@ CreateMutexW (LPSECURITY_ATTRIBUTES lpMutexAttributes, BOOL bInitialOwner, lpName ? get_shared_parent_dir () : NULL, lpMutexAttributes ? lpMutexAttributes->lpSecurityDescriptor : NULL); - status = NtCreateMutant (&mtx, CYG_MUTANT_ACCESS, &attr, bInitialOwner); + status = NtCreateMutant (&mtx, MUTEX_ALL_ACCESS, &attr, bInitialOwner); if (!NT_SUCCESS (status)) { SetLastError (RtlNtStatusToDosError (status)); @@ -222,7 +222,7 @@ CreateSemaphoreW (LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, lpSemaphoreAttributes ? lpSemaphoreAttributes->lpSecurityDescriptor : NULL); - status = NtCreateSemaphore (&sem, CYG_SEMAPHORE_ACCESS, &attr, + status = NtCreateSemaphore (&sem, SEMAPHORE_ALL_ACCESS, &attr, lInitialCount, lMaximumCount); if (!NT_SUCCESS (status)) { |