[PATCH v4 1/2] dsound/tests: Add a test whether the buffer is a valid global memory.
Andrew Eikum
aeikum at codeweavers.com
Wed Mar 11 07:36:53 CDT 2020
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
On Fri, Mar 06, 2020 at 09:52:44PM +0900, Akihiro Sagawa wrote:
> In v2, separate conformance test patch.
>
> Signed-off-by: Akihiro Sagawa <sagawa.aki at gmail.com>
> ---
> dlls/dsound/tests/dsound.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/dlls/dsound/tests/dsound.c b/dlls/dsound/tests/dsound.c
> index 7fdac91..0e77961 100644
> --- a/dlls/dsound/tests/dsound.c
> +++ b/dlls/dsound/tests/dsound.c
> @@ -1157,6 +1157,13 @@ static HRESULT test_duplicate(LPGUID lpGuid)
> ok(rc==DS_OK && buf!=NULL,
> "IDirectSoundBuffer_Lock failed to lock the buffer %08x\n",rc);
> if (rc==DS_OK && buf!=NULL) {
> + if (sizeof(void*)==4) { /* crashes on 64-bit */
> + /* broken apps like Asuka 120% Return BURNING Fest,
> + pass the pointer to GlobalHandle. */
> + HGLOBAL hmem = GlobalHandle(buf);
> + todo_wine ok(!hmem,"GlobalHandle should return NULL "
> + "for buffer %p, got %p\n",buf,hmem);
> + }
> ZeroMemory(buf,bufsize);
> rc=IDirectSoundBuffer_Unlock(original,buf,bufsize,
> NULL,0);
More information about the wine-devel
mailing list