Module: wine Branch: master Commit: b608e39e1f3eeae36b190d07e14ec2a22ae14591 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b608e39e1f3eeae36b190d07e1...
Author: Dan Kegel dank@kegel.com Date: Mon May 26 10:12:46 2008 -0700
winmm: Use HeapAlloc in the capture test instead of using strdup.
---
dlls/winmm/tests/capture.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/winmm/tests/capture.c b/dlls/winmm/tests/capture.c index e0975df..fb02d40 100644 --- a/dlls/winmm/tests/capture.c +++ b/dlls/winmm/tests/capture.c @@ -385,7 +385,8 @@ static void wave_in_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"); }
trace(" %s: "%s" (%s) %d.%d (%d:%d)\n",dev_name(device),capsA.szPname,