File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments