We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 569da8a commit da7f112Copy full SHA for da7f112
ProcessHacker/syssccpu.c
@@ -827,14 +827,16 @@ VOID PhSipGetCpuBrandString(
827
_Out_writes_(49) PWSTR BrandString
828
)
829
{
830
- ULONG brandString[4 * 3];
+ CHAR brandString[49];
831
832
- __cpuid(&brandString[0], 0x80000002);
833
- __cpuid(&brandString[4], 0x80000003);
834
- __cpuid(&brandString[8], 0x80000004);
+ NtQuerySystemInformation(
+ SystemProcessorBrandString,
+ brandString,
835
+ sizeof(brandString),
836
+ NULL
837
+ );
838
- PhZeroExtendToUtf16Buffer((PSTR)brandString, 48, BrandString);
- BrandString[48] = 0;
839
+ PhZeroExtendToUtf16Buffer(brandString, 48, BrandString);
840
}
841
842
BOOLEAN PhSipGetCpuFrequencyFromDistribution(
0 commit comments