Unicode compilation fix for !wxUSE_ENHMETAFILE

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-10-09 22:21:28 +00:00
parent d90c9596c1
commit 8534ba3428

View File

@ -377,12 +377,12 @@ bool wxMakeMetafilePlaceable(const wxString& filename, int x1, int y1, int x2, i
p < (WORD *)&pMFHead ->checksum; ++p)
pMFHead ->checksum ^= *p;
FILE *fd = wxFopen(filename.fn_str(), "rb");
FILE *fd = wxFopen(filename.fn_str(), _T("rb"));
if (!fd) return FALSE;
wxChar tempFileBuf[256];
wxGetTempFileName(wxT("mf"), tempFileBuf);
FILE *fHandle = wxFopen(wxConvFile.cWX2MB(tempFileBuf), "wb");
FILE *fHandle = wxFopen(wxConvFile.cWX2MB(tempFileBuf), _T("wb"));
if (!fHandle)
return FALSE;
fwrite((void *)&header, sizeof(unsigned char), sizeof(mfPLACEABLEHEADER), fHandle);