Skip to content

Commit

Permalink
make enigma 5.x happy
Browse files Browse the repository at this point in the history
  • Loading branch information
VeroFess committed Jan 29, 2023
1 parent 671ace4 commit af6f2ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions SbieHide/HideFromPEB.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#include "HideFromPEB.h"
#include "MemoryImageHideInformation.h"

#include <stdio.h>

VOID EraseModuleNameFromPeb() {
PPEB ProcessEnvironmentBlock = nullptr;
PLIST_ENTRY FirstEntry = nullptr;
Expand Down Expand Up @@ -42,11 +40,6 @@ VOID EraseModuleNameFromPeb() {

RtlZeroMemory(CurrentEntryData->BaseDllName.Buffer, CurrentEntryData->BaseDllName.MaximumLength);
RtlZeroMemory(CurrentEntryData->FullDllName.Buffer, CurrentEntryData->FullDllName.MaximumLength);
#ifdef _WIN64
RtlZeroMemory(CurrentEntryData, 136);
#else
RtlZeroMemory(CurrentEntryData, 72);
#endif

CurrentEntry = NextEntry;
continue;
Expand Down
2 changes: 1 addition & 1 deletion SbieHide/LibEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
InitMemoryImageHideInformation();

EraseModuleNameFromPeb();
EraseModuleNameFromPeb();

EnableApiHook();
break;
case DLL_THREAD_ATTACH:
Expand Down

0 comments on commit af6f2ac

Please sign in to comment.