dsound: tests/dsound8.c: Improve test for IDirectSound8_CreateSoundBuffer [resend]
Zac Brown
zac at zacbrown.org
Tue Jun 10 15:08:33 CDT 2008
The code tries to test what happens when you pass NULL as the 3rd arg to
IDirectSound8_CreateSoundBuffer(), but because dwSize wasn't set, the test
doesn't actually test that.
Also fixes valgrind warning:
Conditional jump or move depends on uninitialised value(s)
at DirectSoundDevice_CreateSoundBuffer (dsound.c:1526)
by IDirectSound8_IDirectSound8_CreateSoundBuffer (dsound.c:860)
by test_primary8 (dsound8.c:436)
...
Uninitialised value was created by a stack allocation
at test_primary8 (dsound8.c:397)
-Zac Brown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dsound-improve-IDirectSound8_CreateSoundBuffer-test.patch
Type: text/x-patch
Size: 839 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080610/47b8770d/attachment.bin
More information about the wine-patches
mailing list