From 40c9a08061f285cbc4754bc135539d46c70e02e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sun, 23 Dec 2012 18:55:40 +0100
Subject: Fix compilation of CrashReporter.

Change-Id: I7440eedcf6304ff142029324450af35a5b9606f0

diff --git a/SwifTools/CrashReporter.cpp b/SwifTools/CrashReporter.cpp
index 4a07e40..42a98d8 100644
--- a/SwifTools/CrashReporter.cpp
+++ b/SwifTools/CrashReporter.cpp
@@ -52,12 +52,14 @@ CrashReporter::CrashReporter(const boost::filesystem::path& path) {
 #if defined(SWIFTEN_PLATFORM_WINDOWS)
 	// FIXME: Need UTF8 conversion from string to wstring
 	std::string pathString = path.string();
-	p->handler = boost::make_shared<google_breakpad::ExceptionHandler>(
-			std::wstring(pathString.begin(), pathString.end()), 
-			(google_breakpad::ExceptionHandler::FilterCallback) 0, 
-			handleDump, 
-			(void*) 0, 
-			google_breakpad::ExceptionHandler::HANDLER_ALL);
+	p->handler = boost::shared_ptr<google_breakpad::ExceptionHandler>(
+			// Not using make_shared, because 'handleDump' seems to have problems with VC2010
+			new google_breakpad::ExceptionHandler(
+				std::wstring(pathString.begin(), pathString.end()), 
+				(google_breakpad::ExceptionHandler::FilterCallback) 0, 
+				handleDump, 
+				(void*) 0, 
+				google_breakpad::ExceptionHandler::HANDLER_ALL));
 // Turning it off for Mac, because it doesn't really help us
 //#elif defined(SWIFTEN_PLATFORM_MACOSX)
 //	p->handler = boost::make_shared<google_breakpad::ExceptionHandler>(path.string(), (google_breakpad::ExceptionHandler::FilterCallback) 0, handleDump, (void*) 0, true, (const char*) 0);
-- 
cgit v0.10.2-6-g49f6