fixup
This commit is contained in:
@@ -39,8 +39,10 @@
|
|||||||
*/
|
*/
|
||||||
#include "MsdFile.h"
|
#include "MsdFile.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "io.h"
|
|
||||||
#include "fcntl.h"
|
#include "fcntl.h"
|
||||||
|
#if defined(WIN32)
|
||||||
|
#include "io.h"
|
||||||
|
#endif
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
|
|
||||||
void MsdFile::AddParam( char *buf, int len )
|
void MsdFile::AddParam( char *buf, int len )
|
||||||
@@ -140,7 +142,7 @@ bool MsdFile::ReadFile( CString sNewPath )
|
|||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
/* Open a file */
|
/* Open a file */
|
||||||
if( (fd = open(sNewPath, _O_RDONLY, 0)) == -1 )
|
if( (fd = open(sNewPath, O_RDONLY, 0)) == -1 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int iBufferSize = GetFileSizeInBytes(sNewPath) + 1000; // +1000 because sometimes the bytes read is > filelength. Why?
|
int iBufferSize = GetFileSizeInBytes(sNewPath) + 1000; // +1000 because sometimes the bytes read is > filelength. Why?
|
||||||
|
|||||||
Reference in New Issue
Block a user