Changed const

This commit is contained in:
Sigmanor 2016-01-24 22:56:49 +02:00
parent f01a7abda1
commit b25dee9fba

View file

@ -998,8 +998,9 @@ void AutoLock(bool minimize)
protected override void WndProc(ref Message m) protected override void WndProc(ref Message m)
{ {
const int WM_SYSCOMMAND = '\x112'; const int WM_SYSCOMMAND = 0x112;
const int SC_MINIMIZE = '\xF020'; const int SC_MINIMIZE = 0xF020;
if (m.Msg == WM_SYSCOMMAND && m.WParam.ToInt32() == SC_MINIMIZE && ps.AutoLock == true && key != "") if (m.Msg == WM_SYSCOMMAND && m.WParam.ToInt32() == SC_MINIMIZE && ps.AutoLock == true && key != "")
{ {
AutoLock(true); AutoLock(true);