From 1b9fac45e19c1e3357aca5b4ddb507258a02a27e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 26 Jul 2007 19:31:41 +0000 Subject: [PATCH] From Thibault Genessay, "Attached is an unitialized variable fix I spotted with Purify. The _currentCursor (of type HCURSOR) member of the graphics window was not properly initialized, causing potential problems if setCursor() was called before anything else set it." --- src/osgViewer/GraphicsWindowWin32.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osgViewer/GraphicsWindowWin32.cpp b/src/osgViewer/GraphicsWindowWin32.cpp index e13a2f5a5..57a22e07a 100644 --- a/src/osgViewer/GraphicsWindowWin32.cpp +++ b/src/osgViewer/GraphicsWindowWin32.cpp @@ -960,6 +960,7 @@ GraphicsWindowWin32::GraphicsWindowWin32( osg::GraphicsContext::Traits* traits ) : _hwnd(0), _hdc(0), _hglrc(0), + _currentCursor(0), _windowProcedure(0), _timeOfLastCheckEvents(-1.0), _screenOriginX(0),