From 92c0615f4af2bb8a868356f50a4998af15eb2cf0 Mon Sep 17 00:00:00 2001 From: jantari Date: Fri, 19 Jan 2024 23:44:23 +0100 Subject: [PATCH] follow-up fix for 763b416 (#99) --- LSUClient.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LSUClient.psm1 b/LSUClient.psm1 index 25b6ce7..821ee82 100644 --- a/LSUClient.psm1 +++ b/LSUClient.psm1 @@ -353,7 +353,7 @@ class MachineCharacteristics { # Get() always returns an indexable ManagementObjectCollection and in case we are on a multi-socket machine or # VM we just take the first processors AddressWidth because I don't believe it is possible to run dual-socket # with mixed 32-bit and 64-bit processors. See issue #99. - $this._CPUAddressWidth = [System.Management.ManagementObjectSearcher]::new('SELECT AddressWidth FROM Win32_Processor').Get()[0].AddressWidth + $this._CPUAddressWidth = [System.Management.ManagementObjectSearcher]::new('SELECT AddressWidth FROM Win32_Processor').Get().AddressWidth[0] } if ($Overrides.ContainsKey('_Bios')) {