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

This commit is contained in:
Maarten Lankhorst 2008-05-22 11:07:27 -07:00 committed by Alexandre Julliard
parent 62b0e91c38
commit 6589d9ab95

View file

@ -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));