diff --git a/dlls/dsound/tests/capture.c b/dlls/dsound/tests/capture.c index 9f9b150..b0f6311 100644 --- a/dlls/dsound/tests/capture.c +++ b/dlls/dsound/tests/capture.c @@ -36,6 +36,8 @@ static HRESULT (WINAPI *pDirectSoundCaptureCreate)(LPCGUID,LPDIRECTSOUNDCAPTURE*,LPUNKNOWN)=NULL; static HRESULT (WINAPI *pDirectSoundCaptureEnumerateA)(LPDSENUMCALLBACKA,LPVOID)=NULL; +HMODULE hDsound; + static const char * get_format_str(WORD format) { static char msg[32]; @@ -589,6 +591,12 @@ static BOOL WINAPI dscenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription, "should have 0\n",ref); } + if (!GetProcAddress(hDsound, "DirectSoundCreate8")) + { + skip("DirectSoundCreate8 not available\n"); + goto EXIT; + } + for (f=0;f