mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-07 23:46:00 +12:00
commit
2eae5892b0
|
@ -302,7 +302,7 @@ protected override void WndProc(ref Message m)
|
||||||
{
|
{
|
||||||
if (m.Msg == (int)WindowsMessages.QUERYENDSESSION)
|
if (m.Msg == (int)WindowsMessages.QUERYENDSESSION)
|
||||||
{
|
{
|
||||||
var reason = (EndSessionReasons)m.GetLParam(typeof(EndSessionReasons));
|
var reason = (EndSessionReasons)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