winmm: Use HeapAlloc in the capture test instead of using strdup.

This commit is contained in:
Dan Kegel 2008-05-26 10:12:46 -07:00 committed by Alexandre Julliard
parent e787f84b01
commit b608e39e1f
1 changed files with 2 additions and 1 deletions

View File

@ -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,