mirror of https://github.com/acidanthera/audk.git
BaseTools/VolInfo: Fix VS2010/VS2012 build failure
https://bugzilla.tianocore.org/show_bug.cgi?id=417 The commit makes the following refinements in VolInfo source codes to avoid VS2010/VS2012 build failure: 1. Refines coding style for function 'CombinePath' to declare local variables at the beginning of the function block. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
parent
52757f69e9
commit
8994d2f95c
|
@ -1590,9 +1590,11 @@ CombinePath (
|
|||
)
|
||||
{
|
||||
UINT32 DefaultPathLen;
|
||||
UINT64 Index;
|
||||
|
||||
DefaultPathLen = strlen(DefaultPath);
|
||||
strcpy(NewPath, DefaultPath);
|
||||
UINT64 Index = 0;
|
||||
Index = 0;
|
||||
for (; Index < DefaultPathLen; Index ++) {
|
||||
if (NewPath[Index] == '\\' || NewPath[Index] == '/') {
|
||||
if (NewPath[Index + 1] != '\0') {
|
||||
|
|
Loading…
Reference in New Issue