EgtInterface 1.8g4 :

- corretta gestione messaggi di errore in EgtApplyAllMachinings e EgtUpdateAllMachinings.
This commit is contained in:
Dario Sassi
2017-07-21 13:00:54 +00:00
parent 5a8a57d331
commit 8a546aa09f
2 changed files with 4 additions and 6 deletions
+4 -6
View File
@@ -1386,10 +1386,9 @@ __stdcall EgtApplyAllMachinings( BOOL bStopOnFirstErr, wchar_t*& wsErrList)
if ( &wsErrList == nullptr)
return FALSE ;
string sErrList ;
if ( ! ExeApplyAllMachinings( bStopOnFirstErr != FALSE, sErrList))
return FALSE ;
bool bOk = ExeApplyAllMachinings( bStopOnFirstErr != FALSE, sErrList) ;
wsErrList = _wcsdup( stringtoW( sErrList)) ;
return (( wsErrList == nullptr) ? FALSE : TRUE) ;
return ( ( bOk && wsErrList != nullptr) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
@@ -1399,10 +1398,9 @@ __stdcall EgtUpdateAllMachinings( BOOL bStopOnFirstErr, wchar_t*& wsErrList)
if ( &wsErrList == nullptr)
return FALSE ;
string sErrList ;
if ( ! ExeUpdateAllMachinings( bStopOnFirstErr != FALSE, sErrList))
return FALSE ;
bool bOk = ExeUpdateAllMachinings( bStopOnFirstErr != FALSE, sErrList) ;
wsErrList = _wcsdup( stringtoW( sErrList)) ;
return (( wsErrList == nullptr) ? FALSE : TRUE) ;
return ( ( bOk && wsErrList != nullptr) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------