Changeset 5600 for trunk/src


Ignore:
Timestamp:
Apr 26, 2001, 9:24:56 PM (24 years ago)
Author:
sandervl
Message:

update due to ole32 changes

File:
1 edited

Legend:

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

    r4962 r5600  
    1 /* $Id: typelib.cpp,v 1.17 2001-01-18 18:12:38 sandervl Exp $ */
     1/* $Id: typelib.cpp,v 1.18 2001-04-26 19:24:56 sandervl Exp $ */
    22/*
    33 * ITypelib interface
     
    17011701        HRSRC                   hRsrc;
    17021702        HGLOBAL                 hData;
    1703         char *                  szLibName = HEAP_strdupA(m_hHeap, 0, szFile);
     1703        char *                  szLibName = HEAP_strdupA(m_hHeap, 0, szFile);
    17041704        char *                  p = strrchr(szLibName, '\\');
    17051705        ULONG                   lResId;
     
    17091709            // Filename of form {drive:}{\\path\\}file\\resid
    17101710            *p = 0;
    1711             lResId = atoi(p + 1);
    1712             hInst = CoLoadLibrary(szLibName, TRUE);
     1711            lResId = atoi((p + 1));
     1712
     1713            LPOLESTR libnameW = (LPOLESTR)HEAP_strdupAtoW(m_hHeap, 0, szLibName);
     1714            hInst = CoLoadLibrary(libnameW, TRUE);
     1715            HeapFree(m_hHeap, 0, libnameW);
    17131716            HeapFree(m_hHeap, 0, szLibName);
    17141717            if (hInst != 0)
     
    17301733
    17311734    // Check to see if this is a module...
    1732     hInst = CoLoadLibrary(szFile, TRUE);
     1735    LPOLESTR libnameW = (LPOLESTR)HEAP_strdupAtoW(m_hHeap, 0, szFile);
     1736    hInst = CoLoadLibrary(libnameW, TRUE);
     1737    HeapFree(m_hHeap, 0, libnameW);
    17331738    if (hInst)
    17341739    {
Note: See TracChangeset for help on using the changeset viewer.