]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Nt32Pkg/StallPei/Stall.c
We enabled X64 native version NT32, and made it works on Windows 7 X64 OS.
[mirror_edk2.git] / Nt32Pkg / StallPei / Stall.c
index e89338dcdfc2cc300314c3b07b827c65990c0f46..c00ada872d3105be1f308494c31681cce66dea54 100644 (file)
@@ -1,7 +1,7 @@
 /**@file\r
   EFI_PEI_STALL implementation for NT32 simulation environment.\r
   \r
-Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -100,7 +100,7 @@ Stall (
   // so micro second units need be divided by 1000 to convert to ms\r
   //\r
   NtThunk = (EFI_WIN_NT_THUNK_PROTOCOL*) PeiNtService->NtThunk();\r
-  NtThunk->Sleep ((Microseconds + 999) / 1000); \r
+  NtThunk->Sleep ((DWORD)((Microseconds + 999) / 1000)); \r
   \r
   return EFI_SUCCESS;\r
 }\r