diff options
Diffstat (limited to 'Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java')
-rw-r--r-- | Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java index 36b095a6e7..c784a50107 100644 --- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java +++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java @@ -39,7 +39,7 @@ public class Tool implements EfiDefine, Section { @param buffer The buffer to put the result with alignment
**/
- public void toBuffer (DataOutputStream buffer){
+ public void toBuffer (DataOutputStream buffer, DataOutputStream orgBuffer){
File OutputFile;
byte data;
@@ -72,6 +72,10 @@ public class Tool implements EfiDefine, Section { while (i < fileLen) {
data = In.readByte();
buffer.writeByte(data);
+ //
+ // Add data to org file
+ //
+ orgBuffer.writeByte(data);
i ++;
}
@@ -81,6 +85,7 @@ public class Tool implements EfiDefine, Section { while ((fileLen & 0x03) != 0) {
fileLen++;
buffer.writeByte(0);
+ orgBuffer.writeByte(0);
}
In.close();
|