mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-06 05:05:42 +13:00
Make code prettier
This commit is contained in:
parent
b445d65495
commit
431ffe418e
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ protected override void WndProc(ref Message m)
|
||||||
{
|
{
|
||||||
if (m.Msg == (int)WindowsMessages.QUERYENDSESSION)
|
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))
|
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.
|
// Register for restart. This allows our application to automatically restart when it is installing an update from the Store.
|
||||||
|
|
Loading…
Reference in a new issue