13
0

use g_open for DLL arch test

This commit is contained in:
Robin Gareus 2015-10-08 13:40:37 +02:00
parent b5ea1b23b4
commit d1d5f7f311

View File

@ -798,7 +798,7 @@ static std::string dll_info (std::string path) {
uint16_t type = 0;
off_t pe_hdr_off = 0;
int fd = open(path.c_str(), O_RDONLY, 0444);
int fd = g_open(path.c_str(), O_RDONLY, 0444);
if (fd < 0) {
return _("- cannot open dll"); // TODO strerror()