Skip to content

Commit

Permalink
Linux problem fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
codeyash committed Mar 25, 2015
1 parent e631ea0 commit 2ebe7ae
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CrashHandler/CrashHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,10 @@ namespace CrashManager
Creating QString's, using qDebug, etc. - everything is crash-unfriendly.
*/

char* path;

#ifdef defined(Q_OS_LINUX)
path = CrashHandlerPrivate::pHandler->minidump_descriptor().path()

#if defined(Q_OS_LINUX)
const char* path = CrashHandlerPrivate::pHandler->minidump_descriptor().path();
launcher(CrashHandlerPrivate::reporter_,path);
#elif defined(Q_OS_WIN)

Expand All @@ -285,12 +285,14 @@ namespace CrashManager
wcscat( wpath, L".dmp" );


wcstombs(path,wpath, sizeof(path) );
//wcstombs(path,wpath, sizeof(path) );


launcher(wpath);
#elif defined(Q_OS_MAC)

char* path;

strcpy (path,_dump_dir);
strcat (path,"/");
strcat (path,_minidump_id);
Expand Down

0 comments on commit 2ebe7ae

Please sign in to comment.