merces / libpe

The PE library used by @merces/pev
http://pev.sf.net
GNU Lesser General Public License v3.0
115 stars 40 forks source link

Respect filemode options when using LIBPE_OPT_OPEN_RW #29

Closed xxami closed 4 years ago

xxami commented 4 years ago

i'm not an expert here, but i've tried to use pe_load_file_ext with LIBPE_OPT_NOCLOSE_FD and without LIBPE_OPT_OPEN_RW which seems to fail here, and this fixed it for me.

jweyrich commented 4 years ago

Hi @xxami! You're right! Thank you for the PR.