[commit] r2017 - trunk/GME/Mga

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Aug 14 17:32:26 CDT 2012


Author: ksmyth
Date: Tue Aug 14 17:32:25 2012
New Revision: 2017

Log:
Need to fully-qualify GUID or IMgaProject::GUID attribute is used

Modified:
   trunk/GME/Mga/MgaProject.cpp

Modified: trunk/GME/Mga/MgaProject.cpp
==============================================================================
--- trunk/GME/Mga/MgaProject.cpp	Tue Aug 14 17:32:12 2012	(r2016)
+++ trunk/GME/Mga/MgaProject.cpp	Tue Aug 14 17:32:25 2012	(r2017)
@@ -102,7 +102,7 @@
 			COMTHROW(metapr->get_Version(&parversion));
 			dataroot[ATTRID_PARVERSION] = parversion;
 			dataroot[ATTRID_NAME]    = rootname;
-			if( guid.vt != (VT_UI1 | VT_ARRAY) || GetArrayLength(guid) != sizeof(GUID) )
+			if( guid.vt != (VT_UI1 | VT_ARRAY) || GetArrayLength(guid) != sizeof(::GUID) )
 					COMTHROW(E_INVALIDARG);
 			dataroot[ATTRID_PARGUID] = guid;
 			dataroot[ATTRID_VERSION] = CComBSTR(""); // default version string
@@ -125,7 +125,7 @@
 
 
 static int guidcmp(VARIANT &qGUID, VARIANT &pGUID)	{
-	GUID g1, g2;
+	::GUID g1, g2;
 	CopyTo(qGUID, g1);
 	CopyTo(pGUID, g2);
 	return memcmp(&g1, &g2, sizeof(g1));
@@ -844,10 +844,10 @@
 		COMTHROW(dataproject->get_RootObject(&self.ComPtr()));
 		CComVariant p = self[ATTRID_PARGUID];
 
-		if( p.vt != (VT_UI1 | VT_ARRAY) || GetArrayLength(p) != sizeof(GUID) )
+		if( p.vt != (VT_UI1 | VT_ARRAY) || GetArrayLength(p) != sizeof(::GUID) )
 		{
 			::GUID guid;
-			memset(&guid, 0, sizeof(GUID));
+			memset(&guid, 0, sizeof(::GUID));
 
 			CopyTo(guid, p);
 		}
@@ -904,10 +904,10 @@
 			p = pendingguid;
 		}
 		
-		if( p.vt != (VT_UI1 | VT_ARRAY) || GetArrayLength(p) != sizeof(GUID) )
+		if( p.vt != (VT_UI1 | VT_ARRAY) || GetArrayLength(p) != sizeof(::GUID) )
 		{
 			::GUID guid;
-			memset(&guid, 0, sizeof(GUID));
+			memset(&guid, 0, sizeof(::GUID));
 
 			CopyTo(guid, p);
 		}
@@ -924,7 +924,7 @@
 		CoreObj self;
 		COMTHROW(dataproject->get_RootObject(&self.ComPtr()));
 
-		if( newVal.vt != (VT_UI1 | VT_ARRAY) || GetArrayLength(newVal) != sizeof(GUID) )
+		if( newVal.vt != (VT_UI1 | VT_ARRAY) || GetArrayLength(newVal) != sizeof(::GUID) )
 			COMTHROW(E_INVALIDARG);
 
 		self[ATTRID_GUID] = newVal;


More information about the gme-commit mailing list