mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-04 04:06:05 +13:00
Fix typo
This commit is contained in:
parent
e7e30a46c2
commit
a0b266d492
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)
|
||||
{
|
||||
// Calling ToInt64 because the int conversion operator (called when irectly casting the IntPtr to the enum)
|
||||
// Calling ToInt64 because the int conversion operator (called when directly casting the IntPtr to the enum)
|
||||
// enforces checked semantics thus crashes any 64 bits build. ToInt64() and long -> enum conversion doesn't.
|
||||
EndSessionReasons reason = (EndSessionReasons)m.LParam.ToInt64();
|
||||
if (reason.HasFlag(EndSessionReasons.ENDSESSION_CLOSEAPP))
|
||||
|
|
Loading…
Reference in a new issue