Ignore:
Timestamp:
Mar 19, 2000, 4:35:32 PM (25 years ago)
Author:
davidr
Message:

Ported changes from wine/corel sources

File:
1 edited

Legend:

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

    r1033 r3167  
    1 /* $Id: datacache.cpp,v 1.1 1999-09-24 21:49:42 davidr Exp $ */
     1/* $Id: datacache.cpp,v 1.2 2000-03-19 15:33:05 davidr Exp $ */
    22/*
    33 *  OLE 2 Data cache
     
    13151315  TRACE("(%p, %p)\n", iface, pStgNew);
    13161316
    1317   /*
    1318    * First, make sure we get our hands off any storage we have.
    1319    */
    1320   DataCache_HandsOffStorage(iface);
    1321 
    1322   /*
    1323    * Then, attach to the new storage.
    1324    */
    1325   DataCache_Load(iface, pStgNew);
     1317  if (pStgNew)
     1318  {
     1319      /*
     1320       * First, make sure we get our hands off any storage we have.
     1321       */
     1322      DataCache_HandsOffStorage(iface);
     1323
     1324      /*
     1325       * Then, attach to the new storage.
     1326       */
     1327      DataCache_Load(iface, pStgNew);
     1328  }
    13261329
    13271330  return S_OK;
     
    14431446    return E_INVALIDARG;
    14441447
     1448/** Hack for WPO2000 release. */
     1449  if (dwDrawAspect != DVASPECT_CONTENT)
     1450  {
     1451      FIXME("only CONTENT aspect implemented\n");
     1452      dwDrawAspect = DVASPECT_CONTENT;
     1453  }
     1454/***/
     1455
    14451456  /*
    14461457   * First, we need to retrieve the dimensions of the
Note: See TracChangeset for help on using the changeset viewer.