Skip to content

Commit

Permalink
Merge pull request #1064 from forderud/GetSimBattStateFromRegistry-fix
Browse files Browse the repository at this point in the history
simbatt: Fix broken registry read-back
  • Loading branch information
tristanb-ntdev authored Jun 18, 2024
2 parents b92ab1c + 54466da commit dbfbead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simbatt/func/miniclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Return Value:
}

Status = GetSimBattStateFromRegistry(Device, RegState);
if (!NT_SUCCESS(Status)) {
if (NT_SUCCESS(Status)) {

RtlZeroMemory(RegState, sizeof(SIMBATT_STATE));
WdfWaitLockAcquire(DevExt->StateLock, NULL);
Expand Down

0 comments on commit dbfbead

Please sign in to comment.