Commit b608e39e authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

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

parent e787f84b
......@@ -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,
......
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