Changeset 869 for trunk/src


Ignore:
Timestamp:
Sep 8, 1999, 12:34:32 PM (26 years ago)
Author:
phaller
Message:

Fix: exported CLSIDFromStringA as replacement for CLSIDFromString16

Location:
trunk/src/ole32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ole32/clsid.cpp

    r856 r869  
    6363    return CLSIDFromString((LPCOLESTR)lpsz, (LPCLSID)lpiid);
    6464}
     65
     66
     67// ----------------------------------------------------------------------
     68// CLSIDFromStringA()
     69// @@@PH: this is not a WINE API, but a replacement for CLSIDFromString16
     70//        which used to accept ASCII strings instead of OLE strings
     71// ----------------------------------------------------------------------
     72
     73// missing prototype
     74LPWSTR WIN32API HEAP_strdupAtoW( HANDLE heap, DWORD flags, LPCSTR str );
     75
     76HRESULT WIN32API CLSIDFromStringA(
     77    LPSTR               lpsz,           // [in] - ASCII string CLSID
     78    LPCLSID             pclsid)         // [out] - Binary CLSID
     79{
     80  LPWSTR  lpszOle = HEAP_strdupAtoW(GetProcessHeap(),
     81                                    0,
     82                                    lpsz);
     83  HRESULT hRes;
     84
     85  dprintf(("OLE32: CLSIDFromStringA"));
     86
     87  hRes = CLSIDFromString(lpszOle, pclsid);
     88  HeapFree(GetProcessHeap(), 0, lpszOle);
     89  return hRes;
     90}
     91
    6592
    6693// ----------------------------------------------------------------------
  • trunk/src/ole32/ole32.def

    r856 r869  
    183183;
    184184    WINE_StringFromCLSID       = _WINE_StringFromCLSID@8     @1000
     185    CLSIDFromStringA           = _CLSIDFromStringA@8         @1001
    185186
  • trunk/src/ole32/ole32exp.def

    r856 r869  
    165165    _WriteStringStream@0                      @162
    166166    _WINE_StringFromCLSID@8                   @1000
     167    _CLSIDFromStringA@8                       @1001
Note: See TracChangeset for help on using the changeset viewer.