From 983736252c648598ed6bd0bd0257eff4a95b326c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 10 Oct 2003 20:22:11 +0000 Subject: [PATCH] another Unicode compilation fix for !wxUSE_ENHMETAFILE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/metafile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/metafile.cpp b/src/msw/metafile.cpp index 33f1798b4f..681c8d3a56 100644 --- a/src/msw/metafile.cpp +++ b/src/msw/metafile.cpp @@ -382,7 +382,7 @@ bool wxMakeMetafilePlaceable(const wxString& filename, int x1, int y1, int x2, i wxChar tempFileBuf[256]; wxGetTempFileName(wxT("mf"), tempFileBuf); - FILE *fHandle = wxFopen(wxConvFile.cWX2MB(tempFileBuf), _T("wb")); + FILE *fHandle = wxFopen(wxFNCONV(wxConvFile), _T("wb")); if (!fHandle) return FALSE; fwrite((void *)&header, sizeof(unsigned char), sizeof(mfPLACEABLEHEADER), fHandle);