Skip to content

Commit

Permalink
remove redundant if-conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbssa committed Nov 21, 2021
1 parent 47240b9 commit 93f24f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mgwhelp/dwarf_pe.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,17 +240,17 @@ dwarf_pe_init_link(const wchar_t *image,
(PBYTE)pe_obj->pNtHeaders +
sizeof(DWORD) +
sizeof(IMAGE_FILE_HEADER) );
if (imagebase) *imagebase = opt->ImageBase;
*imagebase = opt->ImageBase;
}
else if (sooh==sizeof(IMAGE_OPTIONAL_HEADER64)) {
PIMAGE_OPTIONAL_HEADER64 opt = (PIMAGE_OPTIONAL_HEADER64)(
(PBYTE)pe_obj->pNtHeaders +
sizeof(DWORD) +
sizeof(IMAGE_FILE_HEADER) );
if (imagebase) *imagebase = opt->ImageBase;
*imagebase = opt->ImageBase;
}
else {
if (imagebase) *imagebase = 0;
*imagebase = 0;
}
}

Expand Down

0 comments on commit 93f24f3

Please sign in to comment.