You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have exactly the same issue on .net framework 4.7.
After digging a little with dotPeek, I found that the code executed in GetArchitecture was not the same code as present in this repository.
The parameter int dwOemId is taken as input. By debugging, I see 0 in case of X86 and 9 in case of X64.
Then, the code runs ushort num = (ushort)(dwOemId >> 16);, which turns my 9 into a 0, causing the next code to detect a X86 processor.
Main()
:Console.WriteLine($"Arch {RuntimeInformation.ProcessArchitecture}, IntPtr.Size: {IntPtr.Size}");
Expected result:
Observed result:
The text was updated successfully, but these errors were encountered: