]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/Win/Host/WinHost.c
EmulatorPkg/host: fix overflow in Mult
[mirror_edk2.git] / EmulatorPkg / Win / Host / WinHost.c
index 0838c56ddea80ff7d784ec4190617e32fb2418ba..876cb8d4be8bbb252f334b029e8c6c5086cb817c 100644 (file)
@@ -577,7 +577,7 @@ Returns:
     //\r
     // Save the size of the memory and make a Unicode filename SystemMemory00, ...\r
     //\r
-    gSystemMemory[Index].Size = _wtoi (MemorySizeStr) * SIZE_1MB;\r
+    gSystemMemory[Index].Size = ((UINT64)_wtoi (MemorySizeStr)) * ((UINT64)SIZE_1MB);\r
 \r
     //\r
     // Find the next region\r