Restricted Win32 API was fixed in Highgui and some 3rd party libs. Patch

for libpng added.
This commit is contained in:
Alexander Smorkalov
2013-08-12 06:30:40 -07:00
parent 8d39350b4d
commit 9af2c1661a
6 changed files with 52 additions and 3 deletions

View File

@@ -366,7 +366,15 @@ private:
struct ImplMutex::Impl
{
void init() { InitializeCriticalSection(&cs); refcount = 1; }
void init()
{
#if (_WIN32_WINNT >= 0x0600)
::InitializeCriticalSectionEx(&cs, 1000, 0);
#else
::InitializeCriticalSection(&cs);
#endif
refcount = 1;
}
void destroy() { DeleteCriticalSection(&cs); }
void lock() { EnterCriticalSection(&cs); }