Module: wine Branch: master Commit: 6589d9ab951d132aabfa1d455263585ded6d6a52 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6589d9ab951d132aabfa1d4552...
Author: Maarten Lankhorst m.b.lankhorst@gmail.com Date: Thu May 22 11:07:27 2008 -0700
winmm: Use HeapAlloc in the wave test instead of using strdup.
---
dlls/winmm/tests/wave.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/winmm/tests/wave.c b/dlls/winmm/tests/wave.c index 2844be4..6401fd3 100644 --- a/dlls/winmm/tests/wave.c +++ b/dlls/winmm/tests/wave.c @@ -885,7 +885,8 @@ static void wave_out_test_device(int device) HeapFree(GetProcessHeap(), 0, nameW); } else if (rc==MMSYSERR_NOTSUPPORTED) { - nameA=strdup("not supported"); + nameA=HeapAlloc(GetProcessHeap(), 0, sizeof("not supported")); + strcpy(nameA, "not supported"); }
rc=waveOutGetDevCapsA(device,&capsA,sizeof(capsA));