Skip to content

Commit 890f1b7

Browse files
author
Frerich Raabe
committed
Removed unused code
Due to the previous commit, the flags bHas32BitExe and bHas64BitDll are no longer used. Hence, let's remove the code which set them up.
1 parent a2bda8f commit 890f1b7

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/creatwth.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,6 @@ BOOL WINAPI DetourUpdateProcessWithDll(_In_ HANDLE hProcess,
507507
{
508508
// Find the next memory region that contains a mapped PE image.
509509
//
510-
BOOL bHas64BitDll = FALSE;
511-
BOOL bHas32BitExe = FALSE;
512510
BOOL bIs32BitProcess;
513511
BOOL bIs64BitOS = FALSE;
514512
HMODULE hModule = NULL;
@@ -528,20 +526,8 @@ BOOL WINAPI DetourUpdateProcessWithDll(_In_ HANDLE hProcess,
528526

529527
if ((inh.FileHeader.Characteristics & IMAGE_FILE_DLL) == 0) {
530528
hModule = hLast;
531-
if (inh.OptionalHeader.Magic == IMAGE_NT_OPTIONAL_HDR32_MAGIC
532-
&& inh.FileHeader.Machine != 0) {
533-
534-
bHas32BitExe = TRUE;
535-
}
536529
DETOUR_TRACE(("%p Found EXE\n", hLast));
537530
}
538-
else {
539-
if (inh.OptionalHeader.Magic == IMAGE_NT_OPTIONAL_HDR64_MAGIC
540-
&& inh.FileHeader.Machine != 0) {
541-
542-
bHas64BitDll = TRUE;
543-
}
544-
}
545531
}
546532

547533
if (hModule == NULL) {

0 commit comments

Comments
 (0)