From cc542fab2e52cca2d1ad8e0fb316a2a87565c008 Mon Sep 17 00:00:00 2001 From: obligaron Date: Mon, 10 May 2021 15:11:57 +0200 Subject: [PATCH] Convert ReadOnlyTest to FOpen --- Source/restrict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/restrict.cpp b/Source/restrict.cpp index 79f4f3eb4..c210157ea 100644 --- a/Source/restrict.cpp +++ b/Source/restrict.cpp @@ -17,7 +17,7 @@ namespace devilution { void ReadOnlyTest() { const std::string path = paths::PrefPath() + "Diablo1ReadOnlyTest.foo"; - FILE *f = fopen(path.c_str(), "wt"); + FILE *f = FOpen(path.c_str(), "wt"); if (f == nullptr) { DirErrorDlg(paths::PrefPath().c_str()); }