Skip to content

Commit 506f430

Browse files
authored
Update UltimateDRM.cpp
1 parent 1b0473c commit 506f430

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/UltimateDRM.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ struct DRM::Impl
117117
try
118118
{
119119
this->AntiDebugger = std::make_unique<DebuggerDetections>(Settings::Instance);
120-
//this->AntiDebugger->StartAntiDebugThread();
120+
this->AntiDebugger->StartAntiDebugThread();
121121
}
122122
catch (const std::bad_alloc& ex)
123123
{
@@ -409,9 +409,9 @@ void NTAPI __stdcall TLSCallback(PVOID pHandle, DWORD dwReason, PVOID Reserved)
409409

410410
if (WinVersion == Windows10) //Windows 11 no longer has the thread's start address on its stack when the tls callback is hit
411411
#ifdef _M_X64
412-
ThreadExecutionAddressStackOffset = 0x378;
412+
ThreadExecutionAddressStackOffset = 0x378;
413413
#else
414-
ThreadExecutionAddressStackOffset = 0x26C;
414+
ThreadExecutionAddressStackOffset = 0x26C;
415415
#endif
416416

417417
SetUnhandledExceptionFilter(g_VectoredExceptionHandler);
@@ -509,3 +509,4 @@ LONG WINAPI g_VectoredExceptionHandler(EXCEPTION_POINTERS* ExceptionInfo)
509509
return EXCEPTION_CONTINUE_SEARCH;
510510
}
511511

512+

0 commit comments

Comments
 (0)