Ignore:
Timestamp:
Feb 9, 2012, 2:34:40 PM (14 years ago)
Author:
dmik
Message:

Don't access debug fields in CRITICAL_SECTION in release builds.

This fixes occasional crashes in CRYPT32.DLL (e.g. when playing back
some Flash contents).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/crypt32/oid.c

    r21916 r21967  
    106106            CryptMemFree(functionCursor);
    107107        }
     108#ifdef DEBUG
    108109        setCursor->cs.DebugInfo->Spare[0] = 0;
     110#endif
    109111        DeleteCriticalSection((CRITICAL_SECTION*)&setCursor->cs);
    110112        CryptMemFree(setCursor);
     
    141143            {
    142144                InitializeCriticalSection((CRITICAL_SECTION*)&ret->cs);
     145#ifdef DEBUG
    143146                ret->cs.DebugInfo->Spare[0] = (DWORD)(DWORD_PTR)(__FILE__ ": OIDFunctionSet.cs");
     147#endif
    144148                list_init(&ret->functions);
    145149                strcpy(ret->name, pszFuncName);
Note: See TracChangeset for help on using the changeset viewer.