mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-30 00:54:06 +02:00
Fix ICC build failures
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10324 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
3432b0cf11
commit
5b368e7d6c
@ -70,10 +70,10 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemSlotDesignation)
|
|||||||
SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE9);
|
SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE9);
|
||||||
SmbiosRecord->Hdr.Handle = 0;
|
SmbiosRecord->Hdr.Handle = 0;
|
||||||
SmbiosRecord->SlotDesignation = 1;
|
SmbiosRecord->SlotDesignation = 1;
|
||||||
SmbiosRecord->SlotType = ForType9InputData->SlotType;
|
SmbiosRecord->SlotType = (UINT8)ForType9InputData->SlotType;
|
||||||
SmbiosRecord->SlotDataBusWidth = ForType9InputData->SlotDataBusWidth;
|
SmbiosRecord->SlotDataBusWidth = (UINT8)ForType9InputData->SlotDataBusWidth;
|
||||||
SmbiosRecord->CurrentUsage = ForType9InputData->SlotUsage;
|
SmbiosRecord->CurrentUsage = (UINT8)ForType9InputData->SlotUsage;
|
||||||
SmbiosRecord->SlotLength = ForType9InputData->SlotLength;
|
SmbiosRecord->SlotLength = (UINT8)ForType9InputData->SlotLength;
|
||||||
SmbiosRecord->SlotID = ForType9InputData->SlotId;
|
SmbiosRecord->SlotID = ForType9InputData->SlotId;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -104,4 +104,3 @@ Stall (
|
|||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
@ -544,6 +544,7 @@ Returns:
|
|||||||
WIN_NT_EFI_FILE_PRIVATE *PrivateFile;
|
WIN_NT_EFI_FILE_PRIVATE *PrivateFile;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
CHAR16 *TempFileName;
|
CHAR16 *TempFileName;
|
||||||
|
UINTN Size;
|
||||||
|
|
||||||
if (This == NULL || Root == NULL) {
|
if (This == NULL || Root == NULL) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
@ -613,10 +614,12 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Find the first file under it
|
// Find the first file under it
|
||||||
//
|
//
|
||||||
|
Size = StrSize (PrivateFile->FilePath);
|
||||||
|
Size += StrSize (L"\\*");
|
||||||
Status = gBS->AllocatePool (
|
Status = gBS->AllocatePool (
|
||||||
EfiBootServicesData,
|
EfiBootServicesData,
|
||||||
StrSize (PrivateFile->FilePath) + StrSize (L"\\*"),
|
Size,
|
||||||
&TempFileName
|
(VOID **)&TempFileName
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
goto Done;
|
goto Done;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user