pkiutilities/PKCS12/CrBer/Src/Crberset.cpp
branchRCL_3
changeset 5 3b17fc5c9564
parent 0 164170e6151a
equal deleted inserted replaced
1:d5423fbb4f29 5:3b17fc5c9564
     1 /*
     1 /*
     2 * Copyright (c) 2000, 2004 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2000, 2004, 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   815             }
   815             }
   816         else
   816         else
   817             {
   817             {
   818             handleThisTime = left;
   818             handleThisTime = left;
   819             }
   819             }
   820         aData->Read(handled, ptr, handleThisTime);
   820         User::LeaveIfError( aData->Read(handled, ptr, handleThisTime) );
   821         iTarget->Write(ptr);
   821         User::LeaveIfError( iTarget->Write(ptr) );
   822         ptr.Zero();
   822         ptr.Zero();
   823 
   823 
   824         handled = handled + handleThisTime;
   824         handled = handled + handleThisTime;
   825         left = size - handled;
   825         left = size - handled;
   826         }
   826         }