From afcae1ce5031538870997cf0f4224185557ea49d Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Mon, 19 Aug 2013 06:27:36 +0000 Subject: - VersionInfo - fix for IE detect - CrashDumper - Correct SIZEOF (patch from person) git-svn-id: http://svn.miranda-ng.org/main/trunk@5740 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CrashDumper/src/utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/CrashDumper') diff --git a/plugins/CrashDumper/src/utils.cpp b/plugins/CrashDumper/src/utils.cpp index 6bbb81c2c8..a00e25317c 100644 --- a/plugins/CrashDumper/src/utils.cpp +++ b/plugins/CrashDumper/src/utils.cpp @@ -383,15 +383,15 @@ void GetInternetExplorerVersion(bkstring& buffer) if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("SOFTWARE\\Microsoft\\Internet Explorer"), 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) { - size = sizeof(ieBuild)/sizeof(ieBuild[0]); + SIZEOF(ieBuild); if (RegQueryValueEx(hKey, TEXT("Build"), NULL, NULL, (LPBYTE) ieBuild, &size) != ERROR_SUCCESS) ieBuild[0] = 0; - size = sizeof(ieVersion)/sizeof(ieVersion[0]); + size = SIZEOF(ieVersion); if (RegQueryValueEx(hKey, TEXT("Version"), NULL, NULL, (LPBYTE) ieVersion, &size) != ERROR_SUCCESS) ieVersion[0] = 0; - size = sizeof(iVer)/sizeof(iVer[0]); + size = SIZEOF(iVer); if (RegQueryValueEx(hKey, TEXT("IVer"), NULL, NULL, (LPBYTE) iVer, &size) != ERROR_SUCCESS) iVer[0] = 0; -- cgit v1.2.3