]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-windows-minidump-20060402
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 3 Apr 2006 00:56:06 +0000 (00:56 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 3 Apr 2006 00:56:06 +0000 (00:56 +0000)
change minidump default to include data segments

(cherry picked from commit 0fd8768c859b549c2294dcb4dc4cb315deb7caad)

src/WINNT/afsd/afsd_init.c

index 2ceefa9a190f07d9c7e3313444edacf333bd62e5..3025fd9d6e086ff778f0e05beb5c54b4a4d9b8bf 100644 (file)
@@ -1480,7 +1480,7 @@ GenerateMiniDump(PEXCEPTION_POINTERS ep)
             DWORD dummyLen;
             DWORD dwValue;
             DWORD code;
-            DWORD dwMiniDumpType = MiniDumpNormal;
+            DWORD dwMiniDumpType = MiniDumpWithDataSegs;
 
             code = RegOpenKeyEx(HKEY_LOCAL_MACHINE, AFSREG_CLT_OPENAFS_SUBKEY,
                                  0, KEY_QUERY_VALUE, &parmKey);
@@ -1489,7 +1489,7 @@ GenerateMiniDump(PEXCEPTION_POINTERS ep)
                 code = RegQueryValueEx(parmKey, "MiniDumpType", NULL, NULL,
                                         (BYTE *) &dwValue, &dummyLen);
                 if (code == ERROR_SUCCESS)
-                    dwMiniDumpType = dwValue ? 1 : 0;
+                    dwMiniDumpType = dwValue;
                 RegCloseKey (parmKey);
             }