Nikolay Sivov (@nsivov) commented about dlls/mfreadwrite/tests/mfplat.c:
+ if (!pMFCreateWAVEMediaSink && !strcmp(extension, "wav")) + { + win_skip("WAVE is not supported.\n"); + winetest_pop_context(); + return; + }
- writer = (void *)0xdeadbeef; - hr = MFCreateSinkWriterFromURL(NULL, NULL, NULL, &writer); - ok(hr == E_INVALIDARG, "Unexpected hr %#lx.\n", hr); - ok(!writer, "Unexpected pointer %p.\n", writer); + /* Get temp file name. */ + GetTempPathW(ARRAY_SIZE(tmp_file), tmp_file); + MultiByteToWideChar(CP_ACP, 0, extension, -1, extension_w, ARRAY_SIZE(extension_w)); + wcscat(tmp_file, L"tmp."); + wcscat(tmp_file, extension_w); No need for conversion here.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2690#note_30945