Przeglądaj źródła

mGlobalsTargetType NULL check

Brian Fiete 3 lat temu
rodzic
commit
e9c85529a6
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      IDEHelper/COFF.cpp

+ 4 - 1
IDEHelper/COFF.cpp

@@ -286,7 +286,10 @@ COFF::~COFF()
 }
 
 const char* COFF::CvCheckTargetMatch(const char* name, bool& wasBeef)
-{	
+{
+	if (mGlobalsTargetType == NULL)
+		return NULL;
+
 	/*if (mGlobalsTargetType->IsGlobalsContainer())
 	{
 		wasBeef = true;