]> git.saurik.com Git - wxWidgets.git/commitdiff
another Unicode compilation fix for !wxUSE_ENHMETAFILE
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 10 Oct 2003 20:22:11 +0000 (20:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 10 Oct 2003 20:22:11 +0000 (20:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/metafile.cpp

index 33f1798b4f670b6f68e5e4528a1c4760cc082529..681c8d3a5637893d11037ac7742a4f382ac69933 100644 (file)
@@ -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);