The debugger "Auto" registry value should be a string.

This commit is contained in:
Alexandre Julliard 2000-11-12 03:43:42 +00:00
parent efc17535ac
commit 0ba2b569e2
2 changed files with 9 additions and 3 deletions

View File

@ -200,7 +200,13 @@ DWORD WINAPI UnhandledExceptionFilter(PEXCEPTION_POINTERS epointers)
count = sizeof(bAuto);
if (RegQueryValueExA(hDbgConf, "Auto", 0, &type, (char*)&bAuto, &count))
bAuto = TRUE;
else if (type == REG_SZ)
{
char autostr[10];
count = sizeof(autostr);
if (!RegQueryValueExA(hDbgConf, "Auto", 0, &type, autostr, &count))
bAuto = atoi(autostr);
}
RegCloseKey(hDbgConf);
} else {
/* format[0] = 0; */

View File

@ -87,7 +87,7 @@
# command line to start a debugger when an exception occurs
"Debugger"="debugger/winedbg %ld %ld"
# to 0 if a message box has to be presented before running the debugger
"Auto"=dword:00000001
"Auto"="1"
#
# This identifies the files for available code pages