Skip to content

Commit

Permalink
QuickWindowsHack
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Dec 1, 2024
1 parent bf27e93 commit 33e17ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions asio/include/asio/detail/impl/win_mutex.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int win_mutex::do_init()
# endif
return 0;
#else
__try
try
{
# if defined(UNDER_CE)
::InitializeCriticalSection(&crit_section_);
Expand All @@ -64,7 +64,7 @@ int win_mutex::do_init()
return ::GetLastError();
# endif
}
__except(GetExceptionCode() == STATUS_NO_MEMORY
except(GetExceptionCode() == STATUS_NO_MEMORY
? EXCEPTION_EXECUTE_HANDLER : EXCEPTION_CONTINUE_SEARCH)
{
return ERROR_OUTOFMEMORY;
Expand Down
4 changes: 2 additions & 2 deletions asio/include/asio/detail/impl/win_static_mutex.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ int win_static_mutex::do_init()
}
# endif
#else
__try
try
{
# if defined(UNDER_CE)
::InitializeCriticalSection(&crit_section_);
Expand All @@ -111,7 +111,7 @@ int win_static_mutex::do_init()
}
# endif
}
__except(GetExceptionCode() == STATUS_NO_MEMORY
except(GetExceptionCode() == STATUS_NO_MEMORY
? EXCEPTION_EXECUTE_HANDLER : EXCEPTION_CONTINUE_SEARCH)
{
::ReleaseMutex(mutex);
Expand Down

0 comments on commit 33e17ec

Please sign in to comment.