From 5fa682d8467099d7cadf27cfe18e9ab9ac01edd0 Mon Sep 17 00:00:00 2001 From: Scott R Charlton Date: Fri, 28 May 2010 00:08:43 +0000 Subject: [PATCH] initialized VAR git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4474 1feff8c3-07ed-0310-ac33-dd36852eb9cd --- SelectedOutput.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SelectedOutput.cpp b/SelectedOutput.cpp index 95365712..d2be3f48 100644 --- a/SelectedOutput.cpp +++ b/SelectedOutput.cpp @@ -62,7 +62,10 @@ CVar CSelectedOutput::Get(int nRow, int nCol)const VRESULT CSelectedOutput::Get(int nRow, int nCol, VAR* pVAR)const { - ::VarClear(pVAR); + if (::VarClear(pVAR) == VR_BADVARTYPE) + { + return VR_BADVARTYPE; + } if ((size_t)nRow >= this->GetRowCount() || nRow < 0) { pVAR->type = TT_ERROR;