I think GlobalHandle() does the right thing here because it should succeed if the buffer is allocated by GlobalAlloc(GMEM_FIXED) or HeapAlloc(). Therefore, dsound needs to be fixed.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48635 Signed-off-by: Akihiro Sagawa sagawa.aki@gmail.com --- dlls/dsound/buffer.c | 16 +++++----------- dlls/dsound/tests/dsound.c | 6 ++++++ 2 files changed, 11 insertions(+), 11 deletions(-)