Permalink
Browse files

UWP asio fix. Already sent pull request upstream (nw)

  • Loading branch information...
1 parent 03219d9 commit a8bdf646f53a07a508592ff628dc56e73b7d6263 @bradhugh bradhugh committed Jan 11, 2017
Showing with 4 additions and 2 deletions.
  1. +4 −2 3rdparty/asio/include/asio/detail/impl/win_mutex.ipp
@@ -44,7 +44,8 @@ int win_mutex::do_init()
# if defined(UNDER_CE)
::InitializeCriticalSection(&crit_section_);
# elif defined(ASIO_WINDOWS_APP)
- ::InitializeCriticalSectionEx(&crit_section_, 0x80000000, 0);
+ if (!::InitializeCriticalSectionEx(&crit_section_, 0xFFFFFF, 0))
+ return ::GetLastError();
# else
if (!::InitializeCriticalSectionAndSpinCount(&crit_section_, 0x80000000))
return ::GetLastError();
@@ -56,7 +57,8 @@ int win_mutex::do_init()
# if defined(UNDER_CE)
::InitializeCriticalSection(&crit_section_);
# elif defined(ASIO_WINDOWS_APP)
- ::InitializeCriticalSectionEx(&crit_section_, 0x80000000, 0);
+ if (!::InitializeCriticalSectionEx(&crit_section_, 0xFFFFFF, 0))
+ return ::GetLastError();
# else
if (!::InitializeCriticalSectionAndSpinCount(&crit_section_, 0x80000000))
return ::GetLastError();

0 comments on commit a8bdf64

Please sign in to comment.