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/context.c

    r21354 r21967  
    198198        list->contextSize = contextSize;
    199199        InitializeCriticalSection((CRITICAL_SECTION*)&list->cs);
     200#ifdef DEBUG
    200201        list->cs.DebugInfo->Spare[0] = (DWORD)(DWORD_PTR)(__FILE__ ": ContextList.cs");
     202#endif
    201203        list_init(&list->contexts);
    202204    }
     
    310312{
    311313    ContextList_Empty(list);
     314#ifdef DEBUG
    312315    list->cs.DebugInfo->Spare[0] = 0;
     316#endif
    313317    DeleteCriticalSection((CRITICAL_SECTION*)&list->cs);
    314318    CryptMemFree(list);
Note: See TracChangeset for help on using the changeset viewer.