From 865eaca27d5ea0eb7f9ad93ad3d169d192080386 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 7 Feb 2022 00:36:48 +0100 Subject: Changed all file opening modes to be binary to have consistent newlines --- Stars45/VidDlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Stars45/VidDlg.cpp') diff --git a/Stars45/VidDlg.cpp b/Stars45/VidDlg.cpp index 918d1df..e7bdc09 100644 --- a/Stars45/VidDlg.cpp +++ b/Stars45/VidDlg.cpp @@ -403,9 +403,9 @@ VidDlg::Apply() FILE* f = 0; if (video_change) - fopen_s(&f, "video2.cfg", "w"); + fopen_s(&f, "video2.cfg", "wb"); else - fopen_s(&f, "video.cfg", "w"); + fopen_s(&f, "video.cfg", "wb"); if (gamma) { g = gamma->GetValue(); -- cgit v1.1