Skip to content

Commit 511e610

Browse files
CopilotMuyuanMS
andauthored
Fix ReadPathsFromFile ifstream also opening in text mode
Agent-Logs-Url: https://github.com/microsoft/PowerToys/sessions/8a7cf963-d3b3-4b05-9f74-0553410f6d59 Co-authored-by: MuyuanMS <116717757+MuyuanMS@users.noreply.github.com>
1 parent 27d771b commit 511e610

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/FileLocksmith/FileLocksmithLibInterop/NativeMethods.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ namespace winrt::PowerToys::FileLocksmithLib::Interop::implementation
6161

6262
com_array<hstring> NativeMethods::ReadPathsFromFile()
6363
{
64-
std::ifstream stream(paths_file());
64+
std::ifstream stream(paths_file(), std::ios::binary);
6565

6666
std::vector<std::wstring> result_cpp;
6767
std::wstring line;

0 commit comments

Comments
 (0)