[EXPLORER] Check m_Position for -1 before using it as an index

This fixes a crash on x64.
This commit is contained in:
Timo Kreuzer 2019-05-30 19:21:45 +02:00
parent 11ffa31155
commit ce537f1ae9

View file

@ -1373,7 +1373,7 @@ GetPrimaryScreenRect:
m_TrayRects[m_Position] = rcTray;
}
else
else if (m_Position != (DWORD)-1)
{
/* If the user isn't resizing the tray window we need to make sure the
new size or position is valid. this is to prevent changes to the window