[Bf-blender-cvs] [d5297b6] master: Fix T39825: Crash on startup with tablet

Campbell Barton noreply at git.blender.org
Thu Jul 3 08:34:37 CEST 2014


Commit: d5297b62834d629600c2d23582b237bb23f5bcd9
Author: Campbell Barton
Date:   Thu Jul 3 16:31:04 2014 +1000
https://developer.blender.org/rBd5297b62834d629600c2d23582b237bb23f5bcd9

Fix T39825: Crash on startup with tablet

===================================================================

M	intern/ghost/intern/GHOST_WindowWin32.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp
index 3000140..274bdd3 100644
--- a/intern/ghost/intern/GHOST_WindowWin32.cpp
+++ b/intern/ghost/intern/GHOST_WindowWin32.cpp
@@ -1117,7 +1117,7 @@ GHOST_TSuccess GHOST_WindowWin32::setWindowCursorShape(GHOST_TStandardCursor cur
 
 void GHOST_WindowWin32::processWin32TabletInitEvent()
 {
-	if (m_wintab) {
+	if (m_wintab && m_tabletData) {
 		GHOST_WIN32_WTInfo fpWTInfo = (GHOST_WIN32_WTInfo) ::GetProcAddress(m_wintab, "WTInfoA");
 
 		// let's see if we can initialize tablet here




More information about the Bf-blender-cvs mailing list