summaryrefslogtreecommitdiff
path: root/src/inc/winwrap.h
diff options
context:
space:
mode:
authorKoundinya Veluri <kouvel@microsoft.com>2017-06-21 11:07:01 -0700
committerGitHub <noreply@github.com>2017-06-21 11:07:01 -0700
commitccd8dd1308c90b7495f182f5a7e121d25aa5e27b (patch)
tree075c4085ba059ab85e5d822097ba84035fcc71f9 /src/inc/winwrap.h
parent66678b6560ef666a80756be54c78f2a5f294baf6 (diff)
downloadcoreclr-ccd8dd1308c90b7495f182f5a7e121d25aa5e27b.tar.gz
coreclr-ccd8dd1308c90b7495f182f5a7e121d25aa5e27b.tar.bz2
coreclr-ccd8dd1308c90b7495f182f5a7e121d25aa5e27b.zip
Fix event, semaphore, mutex create/open to request the maximum allowe… (#12381)
Fix event, semaphore, mutex create/open to request the maximum allowed access Functional fix for #11306 - Ported dotnet/corert@78fae17f5434839a8720603973ff53f27e27f916 to CoreCLR, see that commit for details on the hang during mutex creation that is also fixed by this change. - Replaced all uses of the *_ALL_ACCESS flags relevant to events, semaphores, and mutexes
Diffstat (limited to 'src/inc/winwrap.h')
-rw-r--r--src/inc/winwrap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inc/winwrap.h b/src/inc/winwrap.h
index 820d64bdff..299d163637 100644
--- a/src/inc/winwrap.h
+++ b/src/inc/winwrap.h
@@ -652,7 +652,7 @@
// CoreSystem has CreateSemaphoreExW but not CreateSemaphoreW.
#undef WszCreateSemaphore
-#define WszCreateSemaphore(_secattr, _count, _maxcount, _name) CreateSemaphoreExW((_secattr), (_count), (_maxcount), (_name), 0, SEMAPHORE_ALL_ACCESS)
+#define WszCreateSemaphore(_secattr, _count, _maxcount, _name) CreateSemaphoreExW((_secattr), (_count), (_maxcount), (_name), 0, MAXIMUM_ALLOWED | SYNCHRONIZE | SEMAPHORE_MODIFY_STATE)
// Same deal as above for GetFileVersionInfo/GetFileVersionInfoSize.
#undef GetFileVersionInfo