If the Registry contains a "Cell" entry which is the null string
don't crash. Instead panic and log an appropriate error.
if (ep->ExceptionRecord->ExceptionCode == EXCEPTION_BREAKPOINT)
{
- afsi_log("\nEXCEPTION_BREAKPOINT - continue execition ...\n");
+ afsi_log("\nEXCEPTION_BREAKPOINT - continue execution ...\n");
#ifdef _DEBUG
if (allocRequestBrk)
code = RegQueryValueEx(parmKey, "Cell", NULL, NULL,
cellNamep, &dummyLen);
RegCloseKey (parmKey);
- if (code != ERROR_SUCCESS)
+ if (code != ERROR_SUCCESS || cellNamep[0] == 0)
return -1;
return 0;