mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 626994. Try to detect and report Cisco VPN usage. r=ehsan,a=b
This should help us filter out crashes that caused by the Cisco VPN software --HG-- extra : rebase_source : c2f68c017e3ab97e5f3b5bc8d0e196e6d80b5663
This commit is contained in:
parent
766cb9250c
commit
b36780cce6
@ -465,10 +465,29 @@ GfxInfo::GetAdapterDeviceID(PRUint32 *aAdapterDeviceID)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#if defined(MOZ_CRASHREPORTER) && defined(MOZ_ENABLE_LIBXUL)
|
||||
/* Cisco's VPN software can cause corruption of the floating point state.
|
||||
* Make a note of this in our crash reports so that some weird crashes
|
||||
* make more sense */
|
||||
static void
|
||||
CheckForCiscoVPN() {
|
||||
LONG result;
|
||||
HKEY key;
|
||||
/* This will give false positives, but hopefully no false negatives */
|
||||
result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"Software\\Cisco Systems\\VPN Client", 0, KEY_QUERY_VALUE, &key);
|
||||
if (result == ERROR_SUCCESS) {
|
||||
RegCloseKey(key);
|
||||
CrashReporter::AppendAppNotesToCrashReport(NS_LITERAL_CSTRING("Cisco VPN\n"));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
GfxInfo::AddCrashReportAnnotations()
|
||||
{
|
||||
#if defined(MOZ_CRASHREPORTER) && defined(MOZ_ENABLE_LIBXUL)
|
||||
CheckForCiscoVPN();
|
||||
|
||||
nsCAutoString deviceIDString, vendorIDString;
|
||||
PRUint32 deviceID, vendorID;
|
||||
nsAutoString adapterDriverVersionString;
|
||||
|
Loading…
Reference in New Issue
Block a user