Debugger: fix some static analysis issues from PR #517

This commit is contained in:
tomcw
2017-12-17 18:20:39 +00:00
parent 3553bc1dbf
commit 664edf5b6f
2 changed files with 374 additions and 409 deletions
+6 -2
View File
@@ -201,18 +201,22 @@ void ArgsClear ()
//===========================================================================
bool ArgsGetValue ( Arg_t *pArg, WORD * pAddressValue_, const int nBase )
{
_ASSERT(pArg);
if (pArg == NULL)
return false;
TCHAR *pSrc = & (pArg->sArg[ 0 ]);
TCHAR *pEnd = NULL;
if (pArg && pAddressValue_)
if (pAddressValue_)
{
*pAddressValue_ = (WORD)(_tcstoul( pSrc, &pEnd, nBase) & _6502_MEM_END);
return true;
}
return false;
}
//===========================================================================
bool ArgsGetImmediateValue ( Arg_t *pArg, WORD * pAddressValue_ )
{