Fix the path to launch the crashreporter on mac, which luser broke a couple days ago. Early checkin from bug 358082

This commit is contained in:
benjamin@smedbergs.us 2007-07-24 18:06:06 -07:00
parent a2e65ebb52
commit 6a388a31a3

View File

@ -131,6 +131,8 @@ bool MinidumpCallback(const XP_CHAR* dump_path,
#endif
bool succeeded)
{
printf("Wrote minidump ID %s\n", minidump_id);
XP_CHAR minidumpPath[XP_PATH_MAX];
int size = XP_PATH_MAX;
XP_CHAR* p = Concat(minidumpPath, dump_path, &size);
@ -249,6 +251,12 @@ nsresult SetExceptionHandler(nsILocalFile* aXREDirectory,
rv = aXREDirectory->Clone(getter_AddRefs(exePath));
NS_ENSURE_SUCCESS(rv, rv);
#if defined(XP_MACOSX)
exePath->Append(NS_LITERAL_STRING("crashreporter.app"));
exePath->Append(NS_LITERAL_STRING("Contents"));
exePath->Append(NS_LITERAL_STRING("MacOS"));
#endif
exePath->Append(NS_LITERAL_STRING(CRASH_REPORTER_FILENAME));
nsString crashReporterPath_temp;