Browse Source

ReadOnlyTest: Use "w" mode instead of "wt"

There is no reason to open that file in text mode explicitly
pull/4902/head
Gleb Mazovetskiy 4 years ago
parent
commit
a1aed18c8b
  1. 2
      Source/restrict.cpp

2
Source/restrict.cpp

@ -13,7 +13,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(), "w");
if (f == nullptr) {
DirErrorDlg(paths::PrefPath());
}

Loading…
Cancel
Save