- Timestamp:
- Apr 26, 2001, 9:24:56 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/oleaut32/typelib.cpp
r4962 r5600 1 /* $Id: typelib.cpp,v 1.1 7 2001-01-18 18:12:38sandervl Exp $ */1 /* $Id: typelib.cpp,v 1.18 2001-04-26 19:24:56 sandervl Exp $ */ 2 2 /* 3 3 * ITypelib interface … … 1701 1701 HRSRC hRsrc; 1702 1702 HGLOBAL hData; 1703 char * 1703 char * szLibName = HEAP_strdupA(m_hHeap, 0, szFile); 1704 1704 char * p = strrchr(szLibName, '\\'); 1705 1705 ULONG lResId; … … 1709 1709 // Filename of form {drive:}{\\path\\}file\\resid 1710 1710 *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); 1713 1716 HeapFree(m_hHeap, 0, szLibName); 1714 1717 if (hInst != 0) … … 1730 1733 1731 1734 // 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); 1733 1738 if (hInst) 1734 1739 {
Note:
See TracChangeset
for help on using the changeset viewer.