Add RestoreFileHelper, BackupDataInput, and add java wrappers for the methods on BackupDataOutput.

This commit is contained in:
Joe Onorato 2009-06-12 11:06:24 -07:00 committed by Alex Ray
parent 9becbac780
commit 6890e0bc52

View file

@ -327,7 +327,7 @@ BackupDataReader::ReadAppHeader(String8* packageName, int* cookie)
}
size_t size = m_header.app.packageLen;
char* buf = packageName->lockBuffer(size);
if (packageName == NULL) {
if (buf == NULL) {
packageName->unlockBuffer();
m_status = ENOMEM;
return m_status;