Changeset 5650 for trunk/src


Ignore:
Timestamp:
May 3, 2001, 8:18:53 PM (24 years ago)
Author:
sandervl
Message:

YD: Fail for typelib TLBMAGIC2 type

Location:
trunk/src/oleaut32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/oleaut32/oleaut32.cpp

    r4837 r5650  
    1 /* $Id: oleaut32.cpp,v 1.6 2000-12-24 14:39:54 sandervl Exp $ */
     1/* $Id: oleaut32.cpp,v 1.7 2001-05-03 18:18:53 sandervl Exp $ */
    22/*
    33 * OLEAUT32
     
    2929void OpenPrivateLogFiles()
    3030{
    31 //    OpenPrivateLogFileTypelib();
     31#ifdef DEBUG
     32    OpenPrivateLogFileTypelib();
     33#endif
    3234}
    3335//******************************************************************************
     
    3638void ClosePrivateLogFiles()
    3739{
    38 //    ClosePrivateLogFileTypelib();
     40#ifdef DEBUG
     41    ClosePrivateLogFileTypelib();
     42#endif
    3943}
    4044
  • trunk/src/oleaut32/typelib.cpp

    r5600 r5650  
    1 /* $Id: typelib.cpp,v 1.18 2001-04-26 19:24:56 sandervl Exp $ */
     1/* $Id: typelib.cpp,v 1.19 2001-05-03 18:18:53 sandervl Exp $ */
    22/*
    33 * ITypelib interface
     
    667667    m_pHeader = (TLB2Header *)m_pTypeLib;
    668668
     669    dprintf((LOG, "header:"));
     670    dprintf((LOG, "magic1=0x%08x ,magic2=0x%08x\n", m_pHeader->magic1, m_pHeader->magic2));
     671
     672    if (memcmp(&m_pHeader->magic1,TLBMAGIC2,4)) {
     673        dprintf((LOG, "Header type magic 0x%08x not supported.",m_pHeader->magic1));
     674        return E_FAIL;
     675    }
     676
    669677    if (m_pHeader->varflags & HELPDLLFLAG)
    670678    {
     
    682690    if (m_pSegDir->pTypeInfoTab.res0c != 0x0F || m_pSegDir->pImpInfo.res0c != 0x0F)
    683691    {
    684         dprintf((LOG, "  Segment directory sanity check failed!"));
     692        dprintf((LOG, "  Segment directory sanity check failed! pTypeInfo %x, pImpInfo %x", m_pSegDir->pTypeInfoTab.res0c, m_pSegDir->pImpInfo.res0c));
    685693        return E_FAIL;
    686694    }
Note: See TracChangeset for help on using the changeset viewer.