mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Hardcode product name for breakpad as the conversion code crashes
This commit is contained in:
@@ -93,17 +93,20 @@ LaunchUploader( const wchar_t* dump_dir, const wchar_t* minidump_id, void* that,
|
|||||||
// DON'T USE THE HEAP!!!
|
// DON'T USE THE HEAP!!!
|
||||||
// So that indeed means, no QStrings, no qDebug(), no QAnything, seriously!
|
// So that indeed means, no QStrings, no qDebug(), no QAnything, seriously!
|
||||||
|
|
||||||
const char* productName = static_cast<BreakPad*>(that)->productName();
|
// broken in mingw, hardcode it for now
|
||||||
|
|
||||||
|
// const char* productName = static_cast<BreakPad*>(that)->productName();s
|
||||||
// convert productName to widechars, which sadly means the product name must be Latin1
|
// convert productName to widechars, which sadly means the product name must be Latin1
|
||||||
wchar_t product_name[ 256 ];
|
|
||||||
char* out = (char*)product_name;
|
wchar_t product_name[ 256 ] = L"tomahawk";;
|
||||||
const char* in = productName - 1;
|
|
||||||
do {
|
// char* out = (char*)product_name;
|
||||||
*out++ = *++in; //latin1 chars fit in first byte of each wchar
|
// const char* in = productName - 1;
|
||||||
*out++ = '\0'; //every second byte is NULL
|
// do {
|
||||||
}
|
// *out++ = *++in; //latin1 chars fit in first byte of each wchar
|
||||||
while (*in);
|
// *out++ = '\0'; //every second byte is NULL
|
||||||
|
// }
|
||||||
|
// while (*in);
|
||||||
|
|
||||||
wchar_t command[MAX_PATH * 3 + 6];
|
wchar_t command[MAX_PATH * 3 + 6];
|
||||||
wcscpy( command, CRASH_REPORTER_BINARY L" \"" );
|
wcscpy( command, CRASH_REPORTER_BINARY L" \"" );
|
||||||
|
Reference in New Issue
Block a user