Index: src/plugin/PluginSystem.cpp |
=================================================================== |
--- a/src/plugin/PluginSystem.cpp |
+++ b/src/plugin/PluginSystem.cpp |
@@ -94,44 +94,3 @@ |
return lang; |
} |
- |
- |
-CString CPluginSystem::GetBrowserVersion() const |
-{ |
- CString browserVersion; |
- |
- HKEY hKey; |
- DWORD res; |
- |
- // Open the handler |
- if ((res = ::RegOpenKeyEx(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Internet Explorer", 0, KEY_QUERY_VALUE, &hKey)) == ERROR_SUCCESS) |
- { |
- TCHAR buf[255]; |
- DWORD dwBufSize = sizeof(buf); |
- DWORD dwType = REG_SZ; |
- |
- // Do the processing, find the version |
- if ((res = ::RegQueryValueEx(hKey, L"Version", 0, &dwType, (BYTE*)buf, &dwBufSize)) == ERROR_SUCCESS) |
- { |
- browserVersion = buf; |
- int pos = 0; |
- if ((pos = browserVersion.Find('.')) >= 0) |
- { |
- browserVersion = browserVersion.Left(pos); |
- } |
- } |
- else |
- { |
- DEBUG_ERROR_LOG(res, PLUGIN_ERROR_OS_VERSION, PLUGIN_ERROR_OS_VERSION_REG_QUERY_VALUE, L"Client::GetBrowserVer - Failed reg query value"); |
- } |
- |
- // Close the handler |
- ::RegCloseKey(hKey); |
- } |
- else |
- { |
- DEBUG_ERROR_LOG(res, PLUGIN_ERROR_OS_VERSION, PLUGIN_ERROR_OS_VERSION_REG_OPEN_KEY, L"Client::GetBrowserVer - Failed reg open"); |
- } |
- |
- return browserVersion; |
-} |