ramensoftware / windhawk-mods

The official collection of Windhawk mods
316 stars 57 forks source link

[Logon, Logoff & Shutdown Sounds Restored] LOGON event triggered twice #1164

Open Kiki79250CoC opened 4 weeks ago

Kiki79250CoC commented 4 weeks ago

This is something I noticed during the troubleshooting of a RAM corruption BSOD (at the hardware level), I noticed while I was rebooting my machine again and again that the Logon sound event seems to be played twice (on the lock screen and once logged on).

Assuming only the second event at logon is the correct intended event, it seems that while Windows is loading explorer in advance to gain time at logon, the event is triggered despite it is not supposed to be.

Small video of the double logon event https://youtu.be/A6wP43Yx9gE?t=23

I precise that this seems to happen since the 1.0.2 update, as I never noticed a similar behavior on earlier versions (1.0 and 1.0.1), XP Startup Behavior option is disabled.

--

A potential idea on how to fix it would be to check when the event is triggered if the user is effectively logged on and play the sound if that's the case.

Mod author: @TorutheRedFox

TorutheRedFox commented 4 weeks ago

the sound is played by explorer.exe so there's probably something causing explorer to launch on the lock screen under a different account to yours, as there's a safeguard implemented to prevent the sound from playing twice in the same session