From 33cd860de332a6f6ea90cfbddf87a00cc5d74c4a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 18 May 2013 09:47:17 -0700 Subject: [PATCH] Fix a crash in reporting without gpu set. --- Core/Reporting.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/Reporting.cpp b/Core/Reporting.cpp index 52a4c739ae..26b9ee44af 100644 --- a/Core/Reporting.cpp +++ b/Core/Reporting.cpp @@ -243,7 +243,8 @@ namespace Reporting Payload &payload = payloadBuffer[pos]; std::string gpuPrimary, gpuFull; - gpu->GetReportingInfo(gpuPrimary, gpuFull); + if (gpu) + gpu->GetReportingInfo(gpuPrimary, gpuFull); UrlEncoder postdata; postdata.Add("version", PPSSPP_GIT_VERSION);