projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d9c88e
)
[DSOUND] Check arguments in IDirectSoundFullDuplex::Initialize.
author
Mark Jansen
<mark.jansen@reactos.org>
Sun, 18 Mar 2018 14:56:59 +0000
(15:56 +0100)
committer
Mark Jansen
<mark.jansen@reactos.org>
Sun, 18 Mar 2018 14:58:04 +0000
(15:58 +0100)
This prevents a crash in winetest_dsound:duplex
dll/directx/wine/dsound/duplex.c
patch
|
blob
|
history
diff --git
a/dll/directx/wine/dsound/duplex.c
b/dll/directx/wine/dsound/duplex.c
index
dbee1b1
..
5ab498b
100644
(file)
--- a/
dll/directx/wine/dsound/duplex.c
+++ b/
dll/directx/wine/dsound/duplex.c
@@
-535,6
+535,9
@@
IDirectSoundFullDuplexImpl_Initialize(
lpDscBufferDesc, lpDsBufferDesc, hWnd, dwLevel,
lplpDirectSoundCaptureBuffer8, lplpDirectSoundBuffer8);
+ if (!lplpDirectSoundCaptureBuffer8 || !lplpDirectSoundBuffer8)
+ return E_INVALIDARG;
+
if (This->renderer_device != NULL || This->capture_device != NULL) {
WARN("already initialized\n");
*lplpDirectSoundCaptureBuffer8 = NULL;