EgtInterface 1.8g4 :
- corretta gestione messaggi di errore in EgtApplyAllMachinings e EgtUpdateAllMachinings.
This commit is contained in:
+4
-6
@@ -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) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user