diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-09-24 13:09:45 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-09-24 13:09:45 +0400 |
commit | 1c23aff7a306854a2f280f7ef2bbebdfca7b83b3 (patch) | |
tree | 8968b9e38a7984f825ab39d1f76fc159a1a81e46 /winsup/cygwin/kernel32.cc | |
parent | c1754722eec7fc26cbecd8ba014cff19675b85b3 (diff) |
* kernel32.cc (CreateMutexW): Use correct access mask.
(CreateSemaphoreW): Ditto.
Diffstat (limited to 'winsup/cygwin/kernel32.cc')
-rw-r--r-- | winsup/cygwin/kernel32.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/kernel32.cc b/winsup/cygwin/kernel32.cc index 35b879a3c..6af0ddb2e 100644 --- a/winsup/cygwin/kernel32.cc +++ b/winsup/cygwin/kernel32.cc @@ -131,7 +131,7 @@ CreateMutexW (LPSECURITY_ATTRIBUTES lpMutexAttributes, BOOL bInitialOwner, lpName ? get_shared_parent_dir () : NULL, lpMutexAttributes ? lpMutexAttributes->lpSecurityDescriptor : NULL); - status = NtCreateMutant (&mtx, CYG_EVENT_ACCESS, &attr, bInitialOwner); + status = NtCreateMutant (&mtx, CYG_MUTANT_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_EVENT_ACCESS, &attr, + status = NtCreateSemaphore (&sem, CYG_SEMAPHORE_ACCESS, &attr, lInitialCount, lMaximumCount); if (!NT_SUCCESS (status)) { |