forked from Mirrors/wine-wine
dsound/tests: Add a test whether the buffer is a valid global memory.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit e28638afcc
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
stable
parent
eb510fa5aa
commit
db754f0f18
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue