dplayx: Fix static overrun of pDP array in test. (Coverity)

Ismael Barros razielmine at gmail.com
Thu Sep 11 13:50:58 CDT 2008

On 9/10/08, Kai Blin <kai.blin at gmail.com> wrote:
> ---
>  dlls/dplayx/tests/dplayx.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Sorry for the delay, I should have checked this before. I hadn't even
read the coverity thread.

The patch is incorrect, because EnumSessions_cb_join always receives a
LPDIRECTPLAY4 as lpContext argument, even if most callbacks receive a
lpCallbackData. The initialization of callbackData before the call was
an error on my side.

This patch fixes the double error.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 36b451c57b4ce1387bfbac88b40532af217c1cc4_revised.diff
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080911/55461d45/attachment.txt 

More information about the wine-patches mailing list