diff --git a/sgp/FileMan.cpp b/sgp/FileMan.cpp index c141ddf11..1f153fe70 100644 --- a/sgp/FileMan.cpp +++ b/sgp/FileMan.cpp @@ -491,7 +491,7 @@ BOOLEAN FileReadLine( HWFILE hFile, std::string* pDest ) // //************************************************************************** -BOOLEAN FileWrite( HWFILE hFile, PTR pDest, UINT32 uiBytesToWrite, UINT32 *puiBytesWritten ) +BOOLEAN FileWrite( HWFILE hFile, const void* pDest, UINT32 uiBytesToWrite, UINT32 *puiBytesWritten ) { if(uiBytesToWrite == 0)//dnl ch38 110909 { @@ -507,7 +507,7 @@ BOOLEAN FileWrite( HWFILE hFile, PTR pDest, UINT32 uiBytesToWrite, UINT32 *puiBy UINT32 uiBytesWritten; try { - uiBytesWritten = pWF->write((vfs::Byte*)pDest, uiBytesToWrite); + uiBytesWritten = pWF->write((const vfs::Byte*)pDest, uiBytesToWrite); } catch(std::exception& ex) { diff --git a/sgp/FileMan.h b/sgp/FileMan.h index 251749b44..dbc510727 100644 --- a/sgp/FileMan.h +++ b/sgp/FileMan.h @@ -90,7 +90,7 @@ extern void FileClose( HWFILE ); extern BOOLEAN FileRead( HWFILE hFile, PTR pDest, UINT32 uiBytesToRead, UINT32 *puiBytesRead ); extern BOOLEAN FileReadLine( HWFILE hFile, std::string* pDest ); -extern BOOLEAN FileWrite( HWFILE hFile, PTR pDest, UINT32 uiBytesToWrite, UINT32 *puiBytesWritten ); +extern BOOLEAN FileWrite( HWFILE hFile, const void* pDest, UINT32 uiBytesToWrite, UINT32 *puiBytesWritten ); extern BOOLEAN FileLoad( STR filename, PTR pDest, UINT32 uiBytesToRead, UINT32 *puiBytesRead ); extern BOOLEAN _cdecl FilePrintf( HWFILE hFile, STR8 strFormatted, ... );