mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Some more Windows-related Breakpad fixes.
This commit is contained in:
@@ -96,8 +96,8 @@ LaunchUploader( const wchar_t* dump_dir, const wchar_t* minidump_id, void* that,
|
||||
const char* productName = static_cast<BreakPad*>(that)->productName();
|
||||
|
||||
// convert productName to widechars, which sadly means the product name must be Latin1
|
||||
wchar_t productName[ 256 ];
|
||||
char* out = (char*)product_name;
|
||||
wchar_t wcProductName[ 256 ];
|
||||
char* out = (char*)wcProductName;
|
||||
const char* in = productName - 1;
|
||||
do {
|
||||
*out++ = *++in; //latin1 chars fit in first byte of each wchar
|
||||
@@ -111,7 +111,7 @@ LaunchUploader( const wchar_t* dump_dir, const wchar_t* minidump_id, void* that,
|
||||
wcscat( command, L"\" \"" );
|
||||
wcscat( command, minidump_id );
|
||||
wcscat( command, L"\" \"" );
|
||||
wcscat( command, product_name );
|
||||
wcscat( command, wcProductName );
|
||||
wcscat( command, L"\"" );
|
||||
|
||||
STARTUPINFO si;
|
||||
|
Reference in New Issue
Block a user