mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
* Some more Windows-related Breakpad fixes.
This commit is contained in:
parent
2ceb075706
commit
1721a0b693
@ -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,19 +111,19 @@ 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;
|
||||
PROCESS_INFORMATION pi;
|
||||
|
||||
ZeroMemory( &si, sizeof( si ) );
|
||||
si.cb = sizeof(si);
|
||||
si.cb = sizeof( si );
|
||||
si.dwFlags = STARTF_USESHOWWINDOW;
|
||||
si.wShowWindow = SW_SHOWNORMAL;
|
||||
ZeroMemory( &pi, sizeof(pi) );
|
||||
ZeroMemory( &pi, sizeof( pi ) );
|
||||
|
||||
if (CreateProcess( NULL, command, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
|
||||
if ( CreateProcess( NULL, command, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi ) )
|
||||
{
|
||||
CloseHandle( pi.hProcess );
|
||||
CloseHandle( pi.hThread );
|
||||
|
Loading…
x
Reference in New Issue
Block a user