This commit is contained in:
wuyizhong 2006-09-11 07:39:08 +00:00
parent d039f539ae
commit 7dd2b2ad65
1 changed files with 3 additions and 0 deletions

View File

@ -299,6 +299,8 @@ public class GenSectionTask extends Task implements EfiDefine, Section,FfsTypes
// Call compress
//
byte[] fileBuffer = bo.toByteArray();
synchronized (CompressSection.semaphore) {
Compress myCompress = new Compress(fileBuffer, fileBuffer.length);
//
@ -350,6 +352,7 @@ public class GenSectionTask extends Task implements EfiDefine, Section,FfsTypes
buffer.writeByte(0);
}
}
}
catch (Exception e){
throw new BuildException("compress.toBuffer failed!\n");
}