mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-26 12:24:32 +00:00
MSVC: Fix compilation warning caused by ::toupper (#64)
This commit is contained in:
parent
752f526e2e
commit
50ca8192e6
@ -1185,8 +1185,18 @@ bool getImports(parsed_pe *p) {
|
||||
if (!readCString(*nameSec.sectionData, nameOff, modName)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// clang-format off
|
||||
std::transform(
|
||||
modName.begin(), modName.end(), modName.begin(), ::toupper);
|
||||
modName.begin(),
|
||||
modName.end(),
|
||||
modName.begin(),
|
||||
|
||||
[](char chr) -> char {
|
||||
return static_cast<char>(::toupper(chr));
|
||||
}
|
||||
);
|
||||
// clang-format on
|
||||
|
||||
// then, try and get all of the sub-symbols
|
||||
VA lookupVA = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user