summaryrefslogtreecommitdiff
path: root/src/utilcode
diff options
context:
space:
mode:
authorMatt Ellis <matell@microsoft.com>2015-12-18 14:00:55 -0800
committerMatt Ellis <matell@microsoft.com>2015-12-18 14:00:55 -0800
commit6d9c04a7941af0fab46d9b3a72aedf46af989f30 (patch)
tree86fc82d5bcdb543fa6df518a6a09497bfe1ff2a2 /src/utilcode
parentea7f6d05953cd1660b07621dac11d4d204d3bbbb (diff)
downloadcoreclr-6d9c04a7941af0fab46d9b3a72aedf46af989f30.tar.gz
coreclr-6d9c04a7941af0fab46d9b3a72aedf46af989f30.tar.bz2
coreclr-6d9c04a7941af0fab46d9b3a72aedf46af989f30.zip
Fix infinite recursion in hostimpl.cpp
WaitForSingleObject was calling itself instead of delegating to WaitForSingleObjectEx.
Diffstat (limited to 'src/utilcode')
-rw-r--r--src/utilcode/hostimpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utilcode/hostimpl.cpp b/src/utilcode/hostimpl.cpp
index c1195eaa75..582189c618 100644
--- a/src/utilcode/hostimpl.cpp
+++ b/src/utilcode/hostimpl.cpp
@@ -274,7 +274,7 @@ DWORD STDMETHODCALLTYPE UtilExecutionEngine::WaitForEvent(EVENT_COOKIE event, DW
DWORD STDMETHODCALLTYPE UtilExecutionEngine::WaitForSingleObject(HANDLE handle, DWORD dwMilliseconds)
{
_ASSERTE(handle);
- return WaitForSingleObject(handle, dwMilliseconds);
+ return WaitForSingleObjectEx(handle, dwMilliseconds, FALSE);
}
SEMAPHORE_COOKIE STDMETHODCALLTYPE UtilExecutionEngine::ClrCreateSemaphore(DWORD dwInitial, DWORD dwMax)