Closed forderud closed 3 months ago
Gentle reminder.
@JakobL-MSFT Is it possible to get some kind of explanation for why this PR was closed instead of being considered for merging? Am I misunderstanding something, or don't you want to fix bugs in the sample code?
I closed this PR unintentionally. I apologize. I am reopening the PR.
@JakobL-MSFT @tristanb-ntdev Anything holding back merging of this bugfix?
The
GetSimBattStateFromRegistry
function is currently using default settings ifGetSimBattStateFromRegistry
succeeds, whereas settings from registry are only applied ifGetSimBattStateFromRegistry
fails. This does not make sense to me.Therefore proposing to remove the
!
negation fromif (!NT_SUCCESS(Status)) {
on the line afterStatus = GetSimBattStateFromRegistry(Device, RegState);
so that default settings are loaded when registry read-back fails.