Skip to content

Commit

Permalink
Update peb_lookup.h
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade authored May 1, 2022
1 parent 7d91fcc commit f459224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader_v2/peb_lookup.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ inline DWORD calc_checksum(CHAR_TYPE* curr_name, bool case_sensitive)
for (k = 0; curr_name[k] != 0; k++) {
CHAR_TYPE ch = curr_name[k];
if (!case_sensitive) {
ch = (ch <= 'Z' && ch >= 'A') ? ch = (ch - 'A') + 'a' : ch;
ch = (ch <= 'Z' && ch >= 'A') ? (ch - 'A') + 'a' : ch;
}
for (size_t j = 0; j < 8; j++) {
DWORD b = (ch ^ crc) & 1;
Expand Down

0 comments on commit f459224

Please sign in to comment.