runelite / launcher

Launcher for RuneLite
https://runelite.net
BSD 2-Clause "Simplified" License
65 stars 95 forks source link

don't fail when writing to existing hidden files #107

Closed abextm closed 2 years ago

abextm commented 2 years ago

FileOutputStream (by design) passes FILE_ATTRIBUTE_NORMAL and CREATE_ALWAYS to CreateFile, which causes it to fail with access denied if it is opening a FILE_ATTRIBUTE_HIDDEN or FILE_ATTRIBUTE_SYSTEM file