From b372f97675687a7cfcf66c5b7670d53a0ab48ea5 Mon Sep 17 00:00:00 2001 From: Matthew Parlane Date: Sun, 17 Nov 2013 11:30:05 +1300 Subject: [PATCH] Imagewrite.cpp had same problem. I hate windows :( --- Source/Core/VideoCommon/Src/ImageWrite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/Src/ImageWrite.cpp b/Source/Core/VideoCommon/Src/ImageWrite.cpp index b44bb3e903..193f058541 100644 --- a/Source/Core/VideoCommon/Src/ImageWrite.cpp +++ b/Source/Core/VideoCommon/Src/ImageWrite.cpp @@ -41,7 +41,7 @@ bool TextureToPng(u8* data, int row_stride, const std::string filename, int widt // Open file for writing (binary mode) File::IOFile fp(filename, "wb"); if (!fp.IsOpen()) { - PanicAlert("Screenshot failed: Could not open file %s %d\n", filename, errno); + PanicAlert("Screenshot failed: Could not open file %s %d\n", filename.c_str(), errno); goto finalise; }