Make code prettier

This commit is contained in:
Charles Milette 2018-11-19 14:17:50 -05:00
parent b445d65495
commit 431ffe418e
No known key found for this signature in database
GPG key ID: 1A5AE81377AD973A

View file

@ -302,7 +302,7 @@ protected override void WndProc(ref Message m)
{
if (m.Msg == (int)WindowsMessages.QUERYENDSESSION)
{
EndSessionReasons reason = (EndSessionReasons)(m.LParam.ToInt64() & 0xFFFFFFFF);
EndSessionReasons reason = (EndSessionReasons)(long)(m.LParam);
if (reason.HasFlag(EndSessionReasons.ENDSESSION_CLOSEAPP))
{
// Register for restart. This allows our application to automatically restart when it is installing an update from the Store.