Skip to content

Commit

Permalink
Use reinterpret_cast instead of C-style cast
Browse files Browse the repository at this point in the history
  • Loading branch information
eschan145 committed Jan 8, 2025
1 parent 076fddf commit ddd0a29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ DK_API int __stdcall bsod() {
ULONG uResp;

// Load RtlAdjustPrivilege and NtRaiseHardError functions from ntdll.dll
auto RtlAdjustPrivilege = (NTSTATUS(WINAPI*)(
auto RtlAdjustPrivilege = reinterpret_cast<NTSTATUS(WINAPI*>(
ULONG,
BOOLEAN,
BOOLEAN,
Expand All @@ -504,7 +504,7 @@ DK_API int __stdcall bsod() {
"RtlAdjustPrivilege"
);

auto NtRaiseHardError = (NTSTATUS(WINAPI*)(
auto NtRaiseHardError = reinterpret_cast<NTSTATUS(WINAPI*)>(
NTSTATUS,
ULONG,
ULONG,
Expand Down

0 comments on commit ddd0a29

Please sign in to comment.