INTEGRATION: CWS fwk01 (1.35.2.4.14); FILE MERGED

2003/03/11 13:41:29 as 1.35.2.4.14.1: #108100# handle ErrCode right as ULONG
This commit is contained in:
Jens-Heiner Rechtien 2003-04-04 16:06:15 +00:00
parent 48d1f024d4
commit 3bcb1ca3a7

View file

@ -2,9 +2,9 @@
*
* $RCSfile: iahndl.cxx,v $
*
* $Revision: 1.37 $
* $Revision: 1.38 $
*
* last change: $Author: hr $ $Date: 2003-03-27 17:44:56 $
* last change: $Author: hr $ $Date: 2003-04-04 17:06:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -2141,7 +2141,10 @@ UUIInteractionHandler::handleGenericErrorRequest(
xApprove = star::uno::Reference< star::task::XInteractionApprove >( rContinuations[nStep], star::uno::UNO_QUERY );
}
sal_Bool bWarning = (rRequest.ErrCode & ERRCODE_WARNING_MASK == ERRCODE_WARNING_MASK);
// Note: It's important to convert the transported long to the required unsigned long value.
// Otherwhise using as flag field can fail ...
ErrCode nError = (ErrCode)rRequest.ErrCode;
sal_Bool bWarning = !ERRCODE_TOERROR(nError);
ErrorHandler::HandleError(rRequest.ErrCode);
if (xApprove.is() && bWarning)