From 73cd14b4af906e77f3d8b019962fb9979ff12620 Mon Sep 17 00:00:00 2001 From: mmentovai Date: Wed, 15 Nov 2006 22:24:42 +0000 Subject: Airbag client libraries should compile under MSVC .NET 2003/7.1 (#64). r=bryner http://groups.google.com/group/airbag-dev/browse_thread/thread/b838faeb50f71818 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@64 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/windows/handler/exception_handler.cc | 7 +++++-- src/client/windows/handler/exception_handler.vcproj | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/windows/handler/exception_handler.cc b/src/client/windows/handler/exception_handler.cc index 761f3151..130add2e 100644 --- a/src/client/windows/handler/exception_handler.cc +++ b/src/client/windows/handler/exception_handler.cc @@ -31,6 +31,8 @@ #include +#include "common/windows/string_utils-inl.h" + #include "client/windows/handler/exception_handler.h" #include "common/windows/guid_string.h" #include "google_airbag/common/minidump_format.h" @@ -172,8 +174,9 @@ bool ExceptionHandler::WriteMinidump(const wstring &dump_path, bool ExceptionHandler::WriteMinidumpWithException(DWORD requesting_thread_id, EXCEPTION_POINTERS *exinfo) { wchar_t dump_file_name[MAX_PATH]; - swprintf_s(dump_file_name, MAX_PATH, L"%s\\%s.dmp", - dump_path_.c_str(), next_minidump_id_.c_str()); + WindowsStringUtils::safe_swprintf(dump_file_name, MAX_PATH, L"%s\\%s.dmp", + dump_path_.c_str(), + next_minidump_id_.c_str()); bool success = false; if (minidump_write_dump_) { diff --git a/src/client/windows/handler/exception_handler.vcproj b/src/client/windows/handler/exception_handler.vcproj index 458cac4b..d76aca23 100644 --- a/src/client/windows/handler/exception_handler.vcproj +++ b/src/client/windows/handler/exception_handler.vcproj @@ -298,6 +298,10 @@ RelativePath="..\..\..\google_airbag\common\minidump_format.h" > + +