Ignore:
Timestamp:
Sep 25, 2012, 11:55:02 PM (13 years ago)
Author:
dmik
Message:

Disable debug fields of RTL_CRITICAL_SECTION_DEBUG.

Odin uses the DebugInfo ptr in CRITICAL_SECTION for its own purposes
which are incompatible with NT. For this reason any NT-style usage must
be disabled.

This in particular fixes debug assertions and crashes in CRYPT32.DLL (due to
misinterpretation of the structure fields) which happened e.g. during playback of
some Flash content.

File:
1 edited

Legend:

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

    r21967 r22020  
    4949    {
    5050        InitializeCriticalSection((CRITICAL_SECTION*)&list->cs);
    51 #if DEBUG
     51#ifndef __WIN32OS2__
    5252        list->cs.DebugInfo->Spare[0] = (DWORD)(DWORD_PTR)(__FILE__ ": PCONTEXT_PROPERTY_LIST->cs");
    5353#endif
     
    6868        CryptMemFree(prop);
    6969    }
    70 #if DEBUG
     70#ifndef __WIN32OS2__
    7171    list->cs.DebugInfo->Spare[0] = 0;
    7272#endif
Note: See TracChangeset for help on using the changeset viewer.