Skip to content

Commit

Permalink
Fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
eschan145 committed Jan 8, 2025
1 parent ddd0a29 commit 2566d41
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,24 +495,21 @@ DK_API int __stdcall bsod() {
ULONG uResp;

// Load RtlAdjustPrivilege and NtRaiseHardError functions from ntdll.dll
auto RtlAdjustPrivilege = reinterpret_cast<NTSTATUS(WINAPI*>(
ULONG,
BOOLEAN,
BOOLEAN,
PBOOLEAN))GetProcAddress(
auto RtlAdjustPrivilege = reinterpret_cast<NTSTATUS(WINAPI*)(
ULONG, BOOLEAN, BOOLEAN, PBOOLEAN)>(
GetProcAddress(
GetModuleHandleW(L"ntdll.dll"),
"RtlAdjustPrivilege"
)
);

auto NtRaiseHardError = reinterpret_cast<NTSTATUS(WINAPI*)>(
NTSTATUS,
ULONG,
ULONG,
PULONG_PTR,
ULONG,
PULONG))GetProcAddress(

auto NtRaiseHardError = reinterpret_cast<NTSTATUS(WINAPI*)(
NTSTATUS, ULONG, ULONG, PULONG_PTR, ULONG, PULONG)>(
GetProcAddress(
GetModuleHandleW(L"ntdll.dll"),
"NtRaiseHardError"
)
);

if (!RtlAdjustPrivilege || !NtRaiseHardError) {
Expand Down

0 comments on commit 2566d41

Please sign in to comment.