Commit 6589d9ab authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

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

parent 62b0e91c
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment