[Mobies-commit] [commit] r4161 - UDM/trunk/src/UdmGme
ksmyth at redhat1.isis.vanderbilt.edu
ksmyth at redhat1.isis.vanderbilt.edu
Thu Feb 14 16:54:07 CST 2013
Author: ksmyth
Date: Thu Feb 14 16:54:06 2013
New Revision: 4161
Log:
Fix error with out-of-proc or inter-apartment calls (A null reference pointer was passed to the stub)
Modified:
UDM/trunk/src/UdmGme/UdmGme.cpp
Modified: UDM/trunk/src/UdmGme/UdmGme.cpp
==============================================================================
--- UDM/trunk/src/UdmGme/UdmGme.cpp Thu Feb 14 13:19:35 2013 (r4160)
+++ UDM/trunk/src/UdmGme/UdmGme.cpp Thu Feb 14 16:54:06 2013 (r4161)
@@ -2483,7 +2483,8 @@
if (count == 1)
{
IMgaPartPtr part = parts->Item[1];
- COMTHROW(part->GetGmeAttrs(NULL, &x, &y));
+ _bstr_t icon;
+ COMTHROW(part->GetGmeAttrs(icon.GetAddress(), &x, &y));
char buf[30];
sprintf(buf,"(%d,%d)", x, y);
return buf;
@@ -2494,7 +2495,8 @@
for (int i = 1; i <= count; i++)
{
IMgaPartPtr part = parts->Item[i];
- COMTHROW(part->GetGmeAttrs(NULL, &x, &y));
+ _bstr_t icon;
+ COMTHROW(part->GetGmeAttrs(icon.GetAddress(), &x, &y));
SmartBSTR aspect = part->MetaAspect->Name;
ret += (char *) aspect;
More information about the Mobies-commit
mailing list