[commit] r2125 - trunk/GME/Mga

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Fri Dec 14 17:59:00 CST 2012


Author: ksmyth
Date: Fri Dec 14 17:59:00 2012
New Revision: 2125

Log:
Fix Debug compile

Modified:
   trunk/GME/Mga/Mga.cpp

Modified: trunk/GME/Mga/Mga.cpp
==============================================================================
--- trunk/GME/Mga/Mga.cpp	Fri Dec 14 17:57:59 2012	(r2124)
+++ trunk/GME/Mga/Mga.cpp	Fri Dec 14 17:59:00 2012	(r2125)
@@ -79,17 +79,10 @@
 /////////////////////////////////////////////////////////////////////////////
 // DllRegisterServer - Adds entries to the system registry
 
-#ifdef DEBUG
-HRESULT CheckErrTab(void);
-#endif
-
 STDAPI DllRegisterServer(void)
 {
     // registers object, typelib and all interfaces in typelib
     HRESULT res = _Module.RegisterServer(TRUE);
-#ifdef DEBUG
-	if(res == S_OK) res = CheckErrTab();
-#endif
 	return res;
 }
 
@@ -142,15 +135,3 @@
 #endif
 #include "MgaO.h"
 
-
-#ifdef DEBUG
-
-HRESULT CheckErrTab(void) {
-	for(struct errtab const *hh = MgaErrTab; hh->code != 0; hh++) { 
-		if(!(hh->code >= MGAERRCODEBASE || hh->code < MGAERRCODEBASE + MGAERRCODESPAN)) {
-			return E_MGA_ERRCODE_ERROR;
-		}
-	}
-	return S_OK;
-}
-#endif


More information about the gme-commit mailing list