summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2013-11-17 11:30:05 +1300
committerMatthew Parlane <parlane@gmail.com>2013-11-17 11:30:05 +1300
commitb372f97675687a7cfcf66c5b7670d53a0ab48ea5 (patch)
treea441cce2b4325e9dec64eae6a7b2ce08b5691553 /Source/Core/VideoCommon
parentf4a1f183b9a34c9962dadfd3a6ac2bb9b7f92c28 (diff)
Imagewrite.cpp had same problem.
I hate windows :(
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/Src/ImageWrite.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}