Commit 48fdc8e0 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dmsynth: Don't crash when Open() gets a DMUS_PORTPARAMS7.

Wrong sizeof check: pointer instead of referenced structure. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53704
parent 8fb04515
......@@ -163,7 +163,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Open(IDirectMusicSynth8 *iface, DMU
modified = TRUE;
params->fShare = FALSE;
if (params->dwSize >= sizeof(params)) {
if (params->dwSize >= sizeof(*params)) {
if (params->dwValidParams & DMUS_PORTPARAMS_FEATURES && params->dwFeatures) {
if (params->dwFeatures & ~(DMUS_PORT_FEATURE_AUDIOPATH|DMUS_PORT_FEATURE_STREAMING)) {
modified = TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment