Don't output FUNC lines for 0-length functions (#139). r=bryner

http://groups.google.com/group/google-breakpad-dev/browse_thread/thread/c684520587356ec3


git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@129 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
mmentovai 2007-03-22 21:10:30 +00:00
parent d128f5f6af
commit 6bc866cc82

View File

@ -151,6 +151,11 @@ bool PDBSourceLineWriter::PrintFunction(IDiaSymbol *function) {
return false;
}
if (length == 0) {
// Silently ignore zero-length functions, which can infrequently pop up.
return true;
}
CComBSTR name;
int stack_param_size;
if (!GetSymbolFunctionName(function, &name, &stack_param_size)) {