Fix some VS2003 warnings
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9873 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1074,7 +1074,7 @@ EfiTell (
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
File->Size = BufferSize;
|
File->Size = (UINTN)BufferSize;
|
||||||
File->MaxPosition = File->Size;
|
File->MaxPosition = File->Size;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1451,7 +1451,7 @@ EfiWrite (
|
|||||||
|
|
||||||
TempBuffer = File->Buffer;
|
TempBuffer = File->Buffer;
|
||||||
|
|
||||||
File->Buffer = AllocatePool (File->CurrentPosition + *BufferSize);
|
File->Buffer = AllocatePool ((UINTN)(File->CurrentPosition + *BufferSize));
|
||||||
if (File->Buffer == NULL) {
|
if (File->Buffer == NULL) {
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
@ -1460,8 +1460,8 @@ EfiWrite (
|
|||||||
|
|
||||||
FreePool (TempBuffer);
|
FreePool (TempBuffer);
|
||||||
|
|
||||||
File->Size = File->CurrentPosition + *BufferSize;
|
File->Size = (UINTN)(File->CurrentPosition + *BufferSize);
|
||||||
File->MaxPosition = File->Size;
|
File->MaxPosition = (UINT64)File->Size;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy in the requested data
|
// Copy in the requested data
|
||||||
|
Reference in New Issue
Block a user