mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-05 06:30:36 +12:00
Fix crash on shutdown
This commit is contained in:
parent
0c30a44822
commit
783bacdb9f
|
@ -302,7 +302,7 @@ protected override void WndProc(ref Message m)
|
|||
{
|
||||
if (m.Msg == (int)WindowsMessages.QUERYENDSESSION)
|
||||
{
|
||||
var reason = (EndSessionReasons)m.GetLParam(typeof(EndSessionReasons));
|
||||
var reason = (EndSessionReasons)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.
|
||||
|
|
Loading…
Reference in a new issue