On Fri, 12 Jan 2007, Robert Reif wrote:
This patch fixes the tests to they can run without crashing on old versions of windows that doesn't have dsound.dll.
+ hDsound = LoadLibrary("dsound.dll"); + if (hDsound) { [...] + pDirectSoundCaptureEnumerateA=(void*)GetProcAddress(hDsound, + "DirectSoundCaptureEnumerateA"); + if (pDirectSoundCaptureCreate && pDirectSoundCaptureEnumerateA) + { [...]
If all dsound.dll implementations are supposed to have these functions (which I believe is the case), then I would test that we found them with an ok() call.
Also, if we fail to load dsound.dll, then we should indicate that we are skipping the tests with the new skip() function. This will make it clearer when analysing the logs that a big chunk of functionality was not tested (see the d3d8 tests for instance).