mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-23 19:15:30 +00:00
Fix broken build of mac crash report tool.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@723 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
3382d1e0a6
commit
3b4ac42ff8
|
@ -171,14 +171,13 @@ OnDemandSymbolSupplier::GetCStringSymbolData(const CodeModule *module,
|
|||
symbol_file,
|
||||
&symbol_data_string);
|
||||
if (result == FOUND) {
|
||||
unsigned int size = symbol_data_string.size() + 1;
|
||||
*symbol_data = new char[size];
|
||||
*symbol_data = new char[symbol_data_string.size() + 1];
|
||||
if (*symbol_data == NULL) {
|
||||
// Should return INTERRUPT on memory allocation failure.
|
||||
return INTERRUPT;
|
||||
}
|
||||
strcpy(*symbol_data, symbol_data_string.c_str());
|
||||
memory_buffers_.insert(make_pair(module->code_file(), *symbol_data);
|
||||
memory_buffers_.insert(make_pair(module->code_file(), *symbol_data));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue