Fix ICC build failures
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 31 Mar 2010 19:20:14 +0000 (19:20 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 31 Mar 2010 19:20:14 +0000 (19:20 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10324 6f19259b-4bc3-4df7-8a09-765794883524

edk2/Nt32Pkg/MiscSubClassPlatformDxe/MiscSystemSlotDesignationFunction.c
edk2/Nt32Pkg/StallPei/Stall.c
edk2/Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c

index 525459d..55dce0a 100644 (file)
@@ -70,10 +70,10 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemSlotDesignation)
   SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE9);\r
   SmbiosRecord->Hdr.Handle = 0; \r
   SmbiosRecord->SlotDesignation = 1;\r
-  SmbiosRecord->SlotType = ForType9InputData->SlotType;\r
-  SmbiosRecord->SlotDataBusWidth = ForType9InputData->SlotDataBusWidth;\r
-  SmbiosRecord->CurrentUsage = ForType9InputData->SlotUsage;\r
-  SmbiosRecord->SlotLength = ForType9InputData->SlotLength;\r
+  SmbiosRecord->SlotType = (UINT8)ForType9InputData->SlotType;\r
+  SmbiosRecord->SlotDataBusWidth = (UINT8)ForType9InputData->SlotDataBusWidth;\r
+  SmbiosRecord->CurrentUsage = (UINT8)ForType9InputData->SlotUsage;\r
+  SmbiosRecord->SlotLength = (UINT8)ForType9InputData->SlotLength;\r
   SmbiosRecord->SlotID = ForType9InputData->SlotId;\r
   \r
   //\r
index 34e5d68..e4ff742 100644 (file)
@@ -104,4 +104,3 @@ Stall (
   \r
   return EFI_SUCCESS;\r
 }\r
-  
\ No newline at end of file
index 2840d5f..167423d 100644 (file)
@@ -544,6 +544,7 @@ Returns:
   WIN_NT_EFI_FILE_PRIVATE           *PrivateFile;\r
   EFI_TPL                           OldTpl;\r
   CHAR16                            *TempFileName;\r
+  UINTN                             Size;\r
 \r
   if (This == NULL || Root == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
@@ -613,10 +614,12 @@ Returns:
   //\r
   // Find the first file under it\r
   //\r
+  Size  = StrSize (PrivateFile->FilePath);\r
+  Size += StrSize (L"\\*");\r
   Status = gBS->AllocatePool (\r
                   EfiBootServicesData,\r
-                  StrSize (PrivateFile->FilePath) + StrSize (L"\\*"),\r
-                  &TempFileName\r
+                  Size,\r
+                  (VOID **)&TempFileName\r
                   );\r
   if (EFI_ERROR (Status)) {\r
     goto Done;\r