summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2f808ac)
It is a regression bug introduced by the patch
b37b108, it cause GenSec
make failure on GCC Env.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Tested-by: Leif Lindholm <leif.lindholm@linaro.org>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
DummyFile = fopen (LongFilePath (DummyFileName), "rb");\r
if (DummyFile == NULL) {\r
Error (NULL, 0, 0001, "Error opening file", DummyFileName);\r
DummyFile = fopen (LongFilePath (DummyFileName), "rb");\r
if (DummyFile == NULL) {\r
Error (NULL, 0, 0001, "Error opening file", DummyFileName);\r
}\r
\r
fseek (DummyFile, 0, SEEK_END);\r
}\r
\r
fseek (DummyFile, 0, SEEK_END);\r
InFile = fopen(LongFilePath(InputFileName[0]), "rb");\r
if (InFile == NULL) {\r
Error (NULL, 0, 0001, "Error opening file", InputFileName[0]);\r
InFile = fopen(LongFilePath(InputFileName[0]), "rb");\r
if (InFile == NULL) {\r
Error (NULL, 0, 0001, "Error opening file", InputFileName[0]);\r
}\r
\r
fseek (InFile, 0, SEEK_END);\r
}\r
\r
fseek (InFile, 0, SEEK_END);\r
fclose(InFile);\r
DebugMsg (NULL, 0, 9, "Input files", "the input file name is %s and the size is %u bytes", InputFileName[0], (unsigned) InFileSize);\r
if (InFileSize > DummyFileSize){\r
fclose(InFile);\r
DebugMsg (NULL, 0, 9, "Input files", "the input file name is %s and the size is %u bytes", InputFileName[0], (unsigned) InFileSize);\r
if (InFileSize > DummyFileSize){\r
- if (stricmp(DummyFileBuffer, InFileBuffer + (InFileSize - DummyFileSize)) == 0){\r
+ if (stricmp((CHAR8 *)DummyFileBuffer, (CHAR8 *)(InFileBuffer + (InFileSize - DummyFileSize))) == 0){\r
SectGuidHeaderLength = InFileSize - DummyFileSize;\r
}\r
}\r
SectGuidHeaderLength = InFileSize - DummyFileSize;\r
}\r
}\r