mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Changed behavior so as not to indicate the error message box when DynamicVariables is 1 and FontSize is 0. (issue 126)
FIXED: Virtual Bytes usage for an x64 process with perfmon plugin does not display value greater than 4 GB (issue 113) The numerical value greater than 32bit can be now displayed when NumOfDecimals is 0 in Meter=STRING. Fixed the broken compatibility in Windows 2000. (AboutDialog, SysInfo)
This commit is contained in:
@ -609,7 +609,17 @@ void GetOSVersion(WCHAR* buffer)
|
||||
void GetOSBits(WCHAR* buffer)
|
||||
{
|
||||
SYSTEM_INFO systemInfo = {0};
|
||||
GetNativeSystemInfo(&systemInfo);
|
||||
|
||||
typedef void (WINAPI *FPGETNATIVESYSTEMINFO)(LPSYSTEM_INFO lpSystemInfo);
|
||||
FPGETNATIVESYSTEMINFO GetNativeSystemInfo = (FPGETNATIVESYSTEMINFO)GetProcAddress(GetModuleHandle(L"kernel32"), "GetNativeSystemInfo");
|
||||
if (GetNativeSystemInfo != NULL)
|
||||
{
|
||||
GetNativeSystemInfo(&systemInfo);
|
||||
}
|
||||
else
|
||||
{
|
||||
GetSystemInfo(&systemInfo);
|
||||
}
|
||||
|
||||
if (systemInfo.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 ||
|
||||
systemInfo.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_IA64)
|
||||
|
Reference in New Issue
Block a user