Skip to content

Commit

Permalink
Undo rename
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Aug 2, 2024
1 parent 6d08e1c commit 5c380cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hal/src/main/native/sim/HAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ HAL_Bool HAL_Initialize(int32_t timeout, int32_t mode) {
ULONG min, max, current;
if (NtQueryTimerResolution(&min, &max, &current) == 0) {
ULONG currentRes;
if (NtSetTimerResolution(desired, TRUE, &currentRes) == 0) {
if (NtSetTimerResolution(max, TRUE, &currentRes) == 0) {
std::atexit([]() {
ULONG currentRes;
NtSetTimerResolution(0, FALSE, &currentRes);
Expand Down

0 comments on commit 5c380cf

Please sign in to comment.