Skip to content

Commit 0511659

Browse files
committed
test(windows): widen the repeat tests' temp paths through the ANSI code page
1 parent 9e45f7c commit 0511659

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎electron/native/wgc-capture/src/mf_encoder_color_test.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ void checkRepeatedFrames(ID3D11Device* device, ID3D11DeviceContext* context) {
298298

299299
{
300300
const std::string path = std::string(tempDir) + "openscreen-mf-encoder-repeat.mp4";
301-
const std::wstring widePath(path.begin(), path.end());
301+
const std::wstring widePath = widen(path);
302302
Microsoft::WRL::ComPtr<ID3D11Texture2D> texture;
303303
MFEncoder encoder;
304304
if (!makeTexture(kWidth, kHeight, texture) ||
@@ -328,7 +328,7 @@ void checkRepeatedFrames(ID3D11Device* device, ID3D11DeviceContext* context) {
328328

329329
{
330330
const std::string path = std::string(tempDir) + "openscreen-mf-encoder-repeat-timing.mp4";
331-
const std::wstring widePath(path.begin(), path.end());
331+
const std::wstring widePath = widen(path);
332332
Microsoft::WRL::ComPtr<ID3D11Texture2D> texture;
333333
MFEncoder encoder;
334334
if (!makeTexture(1920, 1080, texture) ||

0 commit comments

Comments
 (0)