Revert "[DSOUND] Don't force status to failure by default in primarybuffer_SetFormat...
[reactos.git] / dll / directx / wine / dsound / primary.c
index 9f8ecf8..b04a526 100644 (file)
@@ -459,7 +459,7 @@ LPWAVEFORMATEX DSOUND_CopyFormat(LPCWAVEFORMATEX wfex)
 
 HRESULT primarybuffer_SetFormat(DirectSoundDevice *device, LPCWAVEFORMATEX wfex)
 {
 
 HRESULT primarybuffer_SetFormat(DirectSoundDevice *device, LPCWAVEFORMATEX wfex)
 {
-       HRESULT err = S_OK;
+       HRESULT err = DSERR_BUFFERLOST;
        int i;
        DWORD nSamplesPerSec, bpp, chans;
        LPWAVEFORMATEX oldpwfx;
        int i;
        DWORD nSamplesPerSec, bpp, chans;
        LPWAVEFORMATEX oldpwfx;