(file) Return to CMPI_Instance.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ProviderManager2 / CMPI

Diff for /pegasus/src/Pegasus/ProviderManager2/CMPI/CMPI_Instance.cpp between version 1.3.2.5 and 1.3.2.6

version 1.3.2.5, 2004/04/19 15:48:30 version 1.3.2.6, 2004/04/22 19:06:19
Line 76 
Line 76 
 static CMPIData instGetPropertyAt(CMPIInstance* eInst, CMPICount pos, CMPIString** name, static CMPIData instGetPropertyAt(CMPIInstance* eInst, CMPICount pos, CMPIString** name,
                             CMPIStatus* rc) {                             CMPIStatus* rc) {
    CIMInstance* inst=(CIMInstance*)eInst->hdl;    CIMInstance* inst=(CIMInstance*)eInst->hdl;
    CMPIData data={0,0,{0}};     CMPIData data={0,CMPI_nullValue,{0}};
  
    if (pos>inst->getPropertyCount()) {    if (pos>inst->getPropertyCount()) {
      if (rc) CMSetStatus(rc,CMPI_RC_ERR_NOT_FOUND);      if (rc) CMSetStatus(rc,CMPI_RC_ERR_NOT_FOUND);
Line 107 
Line 107 
       if (rc) CMSetStatus(rc,CMPI_RC_OK);       if (rc) CMSetStatus(rc,CMPI_RC_OK);
       return instGetPropertyAt(eInst,pos,NULL,rc);       return instGetPropertyAt(eInst,pos,NULL,rc);
    }    }
    CMPIData data={0,0,{0}};     CMPIData data={0,CMPI_nullValue,{0}};
    if (rc) CMSetStatus(rc,CMPI_RC_ERR_NOT_FOUND);    if (rc) CMSetStatus(rc,CMPI_RC_ERR_NOT_FOUND);
    return data;    return data;
 } }


Legend:
Removed from v.1.3.2.5  
changed lines
  Added in v.1.3.2.6

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2