Ignore:
Timestamp:
Nov 27, 2010, 11:27:43 AM (15 years ago)
Author:
dmik
Message:

Get rid of dd_obj_base.h which duplicates obj_base.h creating unnecessary mess (symbol/define duplication) and conflicts when both the DDarw and other COM-related headers are included.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/dsound/DSOUND.CPP

    r7431 r21479  
    2020
    2121#define INITGUID
    22 #define ICOM_CINTERFACE 1
    2322#define CINTERFACE
    2423#include <dsound.h>
     
    4544   if (OS2IDirectSound::fDSExists) {
    4645      *ppDS = (LPDIRECTSOUND)DS;
    47       DS->Vtbl.AddRef(DS);
     46      DS->Vtbl.fnAddRef(DS);
    4847      return DS_OK;
    4948   }
     
    6160   else {
    6261     *ppDS = (LPDIRECTSOUND)newsound;
    63      newsound->Vtbl.AddRef(newsound);
     62     newsound->Vtbl.fnAddRef(newsound);
    6463     DS = newsound;
    6564   }
     
    178177
    179178  dprintf(("DSOUND:DSCF_CreateInstance\n"));
    180   if( lpGUID && (*lpGUID == IID_IDirectSound )) {
     179  if(lpGUID && IsEqualGUID(lpGUID, &IID_IDirectSound)) {
    181180    return OS2DirectSoundCreate(lpGUID,(LPDIRECTSOUND*)ppobj,pOuter);
    182181  }
     
    223222  {
    224223    *ppv = (LPVOID)&DSOUND_CF;
    225     DSOUND_CF.lpvtbl->AddRef((IClassFactory*)&DSOUND_CF);
     224    DSOUND_CF.lpvtbl->fnAddRef((IClassFactory*)&DSOUND_CF);
    226225    return S_OK;
    227226  }
Note: See TracChangeset for help on using the changeset viewer.