Changed the first parameter from LPGUID (Windows headers) to REFGUID.
This makes it a 'const GUID*' which means DirectSoundCreate must not change it.
This commit is contained in:
parent
75b84bb7c8
commit
b8cfd179d1
|
@ -171,7 +171,7 @@ typedef LPVOID* LPLPVOID;
|
|||
typedef BOOL32 (CALLBACK *LPDSENUMCALLBACK32W)(LPGUID,LPWSTR,LPWSTR,LPVOID);
|
||||
typedef BOOL32 (CALLBACK *LPDSENUMCALLBACK32A)(LPGUID,LPSTR,LPSTR,LPVOID);
|
||||
|
||||
extern HRESULT WINAPI DirectSoundCreate(LPGUID lpGUID,LPDIRECTSOUND * ppDS,IUnknown *pUnkOuter );
|
||||
extern HRESULT WINAPI DirectSoundCreate(REFGUID lpGUID,LPDIRECTSOUND * ppDS,IUnknown *pUnkOuter );
|
||||
|
||||
#define STDMETHOD(xfn) HRESULT (CALLBACK *fn##xfn)
|
||||
#define STDMETHOD_(ret,xfn) ret (CALLBACK *fn##xfn)
|
||||
|
|
|
@ -2073,7 +2073,7 @@ static DWORD WINAPI DSOUND_thread(LPVOID arg)
|
|||
|
||||
#endif /* HAVE_OSS */
|
||||
|
||||
HRESULT WINAPI DirectSoundCreate(LPGUID lpGUID,LPDIRECTSOUND *ppDS,IUnknown *pUnkOuter )
|
||||
HRESULT WINAPI DirectSoundCreate(REFGUID lpGUID,LPDIRECTSOUND *ppDS,IUnknown *pUnkOuter )
|
||||
{
|
||||
if (lpGUID)
|
||||
TRACE(dsound,"(%p,%p,%p)\n",lpGUID,ppDS,pUnkOuter);
|
||||
|
|
Loading…
Reference in New Issue