From 2296100e3b7ec901d972e88785768d3a2c494d72 Mon Sep 17 00:00:00 2001 From: Charles Zablit Date: Wed, 29 Apr 2026 23:21:04 +0100 Subject: [PATCH] [lldb][windows] fix yaml2macho not loading file (#194909) --- lldb/tools/yaml2macho-core/yaml2macho.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/tools/yaml2macho-core/yaml2macho.cpp b/lldb/tools/yaml2macho-core/yaml2macho.cpp index 85979a37d167..c29ae282d857 100644 --- a/lldb/tools/yaml2macho-core/yaml2macho.cpp +++ b/lldb/tools/yaml2macho-core/yaml2macho.cpp @@ -72,7 +72,7 @@ int main(int argc, char **argv) { exit(1); } - FILE *input = fopen(InputFilename.c_str(), "r"); + FILE *input = fopen(InputFilename.c_str(), "rb"); if (!input) { fprintf(stderr, "Unable to open %s, exiting\n", InputFilename.c_str()); exit(1);