hasherezade / libpeconv

A library to load, manipulate, dump PE files. See also: https://github.com/hasherezade/libpeconv_tpl
https://hasherezade.github.io/libpeconv
BSD 2-Clause "Simplified" License
1.07k stars 176 forks source link

It is more efficient to seek '.' character rather than a string #16

Closed ghost closed 4 years ago

ghost commented 4 years ago

In exported_func.cpp, peconv::get_dll_shortname:

std::size_t ext = str.find_last_of("."); => std::size_t ext = str.find_last_of('.');