Initialize struct member before use...

This commit is contained in:
dfighter1985 2014-09-27 18:20:29 +02:00
parent 161c8e5edc
commit 039e8a83a4

View file

@ -1851,6 +1851,9 @@ bool CDriverGL::setMode(const GfxMode& mode)
#if defined(NL_OS_WINDOWS)
// save relative cursor
POINT cursorPos;
cursorPos.x = 0;
cursorPos.y = 0;
BOOL cursorPosOk = isSystemCursorInClientArea()
&& GetCursorPos(&cursorPos)
&& ScreenToClient(_win, &cursorPos);