mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-14 19:05:48 +12:00
Fix typo
This commit is contained in:
parent
e7e30a46c2
commit
a0b266d492
|
@ -302,7 +302,7 @@ protected override void WndProc(ref Message m)
|
||||||
{
|
{
|
||||||
if (m.Msg == (int)WindowsMessages.QUERYENDSESSION)
|
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.
|
// enforces checked semantics thus crashes any 64 bits build. ToInt64() and long -> enum conversion doesn't.
|
||||||
EndSessionReasons reason = (EndSessionReasons)m.LParam.ToInt64();
|
EndSessionReasons reason = (EndSessionReasons)m.LParam.ToInt64();
|
||||||
if (reason.HasFlag(EndSessionReasons.ENDSESSION_CLOSEAPP))
|
if (reason.HasFlag(EndSessionReasons.ENDSESSION_CLOSEAPP))
|
||||||
|
|
Loading…
Reference in a new issue