Changeset 21479 for trunk/src/dsound/DSOUND.CPP
- Timestamp:
- Nov 27, 2010, 11:27:43 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dsound/DSOUND.CPP
r7431 r21479 20 20 21 21 #define INITGUID 22 #define ICOM_CINTERFACE 123 22 #define CINTERFACE 24 23 #include <dsound.h> … … 45 44 if (OS2IDirectSound::fDSExists) { 46 45 *ppDS = (LPDIRECTSOUND)DS; 47 DS->Vtbl. AddRef(DS);46 DS->Vtbl.fnAddRef(DS); 48 47 return DS_OK; 49 48 } … … 61 60 else { 62 61 *ppDS = (LPDIRECTSOUND)newsound; 63 newsound->Vtbl. AddRef(newsound);62 newsound->Vtbl.fnAddRef(newsound); 64 63 DS = newsound; 65 64 } … … 178 177 179 178 dprintf(("DSOUND:DSCF_CreateInstance\n")); 180 if( lpGUID && (*lpGUID == IID_IDirectSound)) {179 if(lpGUID && IsEqualGUID(lpGUID, &IID_IDirectSound)) { 181 180 return OS2DirectSoundCreate(lpGUID,(LPDIRECTSOUND*)ppobj,pOuter); 182 181 } … … 223 222 { 224 223 *ppv = (LPVOID)&DSOUND_CF; 225 DSOUND_CF.lpvtbl-> AddRef((IClassFactory*)&DSOUND_CF);224 DSOUND_CF.lpvtbl->fnAddRef((IClassFactory*)&DSOUND_CF); 226 225 return S_OK; 227 226 }
Note:
See TracChangeset
for help on using the changeset viewer.