Log Message:
-----------
Crash fix -GetPrimarySurface
Modified Files:
--------------
/cvsroot/decaldev/source/Inject:
FontCache.cpp
Revision Data
-------------
Index: FontCache.cpp
===================================================================
RCS file: /cvsroot/decaldev/source/Inject/FontCache.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- FontCache.cpp 26 Sep 2003 08:25:25 -0000 1.3
+++ FontCache.cpp 8 Oct 2003 20:56:44 -0000 1.4
@@ -33,7 +33,9 @@
// Get a dummy DC from the primary surface
CComPtr< ICanvas > pSurf;
- cManager::_p->GetPrimarySurface( &pSurf );
+
+ if( FAILED(cManager::_p->GetPrimarySurface( &pSurf )) )
+ return false;
// Madar: This can happen if you set an edit-text during plugin initialization.
if (!pSurf)
|