winmm: Use HeapAlloc in the wave test instead of using strdup.
This commit is contained in:
parent
62b0e91c38
commit
6589d9ab95
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue