summaryrefslogtreecommitdiff
path: root/.github/workflows/Code-Scanning.yml
diff options
context:
space:
mode:
authorFredrik Orderud <[email protected]>2023-12-11 12:17:19 +0100
committerFredrik Orderud <[email protected]>2024-05-03 12:31:01 +0200
commit54466dac1149ba84e0ebff353eca8922cbdc5908 (patch)
tree3640039509b3951b41a16e8d236e37afe915f557 /.github/workflows/Code-Scanning.yml
parent1b58b0d98ec1cf22c800853b9c50a3a0449a6b6f (diff)
simbatt: Fix broken registry read-back
The GetSimBattStateFromRegistry function is currently using default settings if GetSimBattStateFromRegistry succeeds, whereas settings from registry are only applied if GetSimBattStateFromRegistry fails. This does not make sense to me. Therefore proposing to remove the `!` negation from `if (!NT_SUCCESS(Status)) {` on the line after `Status = GetSimBattStateFromRegistry(Device, RegState);` so that default settings are loaded when registry read-back fails.
Diffstat (limited to '.github/workflows/Code-Scanning.yml')
0 files changed, 0 insertions, 0 deletions