mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
initialized VAR
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4474 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
parent
1874da5f1d
commit
5fa682d846
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user