norrisng / FcomClient

Forwards private and frequency messages on IVAO and VATSIM via Discord DM.
https://www.norrisng.ca/fcom
GNU General Public License v3.0
7 stars 3 forks source link

FcomClient tries to read/write to system32 #7

Open norrisng opened 5 years ago

norrisng commented 5 years ago

Under unknown circumstances, FcomClient will try to read from C:\Windows\System32, instead of the current directory the executable is located in.

Re-downloading all files seems to fix the problem.

The following cases have been observed:

  1. server_location.txt, without admin privileges
    • Results in System.IO.FileNotFoundException
  2. log.txt, with admin privileges
    • Results in System.UnauthorizedAccessException

Screenshots of the above:

  1. https://cdn.discordapp.com/attachments/502296319340314634/554571734137831424/2019-03-11_18-49-50.png
  2. https://cdn.discordapp.com/attachments/502296319340314634/554572043778129940/2019-03-11_18-51-07.png