gsdx:windows: Fix screenshot/GS dump path issues

Fixes an issue with screenshots/GS dumps not saving if the path contains
characters not present in the current codepage.
This commit is contained in:
Jonathan Li committed 2018-07-23 00:51:02 +01:00
1 parent c9dbd4118b
commit 286e7293fa
4 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ namespace GSPng {
const int offset = first_image ? 0 : pixel[fmt].bytes_per_pixel_out;
const int bytes_per_pixel_out = first_image ? pixel[fmt].bytes_per_pixel_out : bytes_per_pixel_in - offset;
FILE *fp = fopen(file.c_str(), "wb");
FILE *fp = px_fopen(file, "wb");
if (fp == nullptr)
return false;