diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-08-18 20:41:26 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-08-18 20:41:26 +0000 |
commit | 1782bd501414d4e074c991fa0f7612d9896a29e8 (patch) | |
tree | e455fc191995379e7c144f04d6871ea0a2361e9b /plugins | |
parent | fd1e1bdc1173d8b9afe2a8479ace973325172f6e (diff) |
cpuname fix (patch from person)
git-svn-id: http://svn.miranda-ng.org/main/trunk@5736 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CrashDumper/src/utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CrashDumper/src/utils.cpp b/plugins/CrashDumper/src/utils.cpp index f7d1e5d8a1..6bbb81c2c8 100644 --- a/plugins/CrashDumper/src/utils.cpp +++ b/plugins/CrashDumper/src/utils.cpp @@ -458,11 +458,11 @@ void GetProcessorString(bkstring& buffer) if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("Hardware\\Description\\System\\CentralProcessor\\0"), 0,
KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS)
{
- size = sizeof(cpuName)/sizeof(cpuName[0]);
+ size = SIZEOF(cpuName);
if (RegQueryValueEx(hKey, TEXT("ProcessorNameString"), NULL, NULL, (LPBYTE) cpuName, &size) != ERROR_SUCCESS)
_tcscpy(cpuName, TEXT("Unknown"));
- size = sizeof(cpuIdent)/sizeof(cpuIdent[0]);
+ size = SIZEOF(cpuIdent);
if (RegQueryValueEx(hKey, TEXT("Identifier"), NULL, NULL, (LPBYTE) cpuIdent, &size) != ERROR_SUCCESS)
if (RegQueryValueEx(hKey, TEXT("VendorIdentifier"), NULL, NULL, (LPBYTE) cpuIdent, &size) != ERROR_SUCCESS)
_tcscpy(cpuIdent, TEXT("Unknown"));
|