Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Serg-Norseman committed Oct 29, 2023
1 parent 6161367 commit 6454beb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/GKCore/GKCore/LangMan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2031,7 +2031,7 @@ public bool LoadFromFile(string fileName, Assembly resAssembly)

if (resAssembly == null && !File.Exists(fileName)) return result;

using (var inputStream = (resAssembly == null) ? new FileStream(fileName, FileMode.Open) : resAssembly.GetManifestResourceStream(fileName)) {
using (var inputStream = (resAssembly == null) ? new FileStream(fileName, FileMode.Open, FileAccess.Read) : resAssembly.GetManifestResourceStream(fileName)) {
fList.Clear();

using (StreamReader lngFile = new StreamReader(inputStream, Encoding.UTF8)) {
Expand Down
2 changes: 1 addition & 1 deletion projects/GKCore/GKCore/Options/GlobalOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ public void Assign(IOptions source)
private void LngPrepareProc(string fileName, Assembly resAssembly)
{
try {
using (var inputStream = (resAssembly == null) ? new FileStream(fileName, FileMode.Open) : resAssembly.GetManifestResourceStream(fileName)) {
using (var inputStream = (resAssembly == null) ? new FileStream(fileName, FileMode.Open, FileAccess.Read) : resAssembly.GetManifestResourceStream(fileName)) {
using (var reader = new StreamReader(inputStream, Encoding.UTF8)) {
string st = reader.ReadLine(); // header

Expand Down

0 comments on commit 6454beb

Please sign in to comment.