From b608e39e1f3eeae36b190d07e14ec2a22ae14591 Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Mon, 26 May 2008 10:12:46 -0700 Subject: [PATCH] winmm: Use HeapAlloc in the capture test instead of using strdup. --- dlls/winmm/tests/capture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/winmm/tests/capture.c b/dlls/winmm/tests/capture.c index e0975df9a39..fb02d40015c 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, -- 2.11.4.GIT