mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
add includes to OnFrame.cpp, also have it use the right file (ref previous two commits)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7144 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
00daea0ec9
commit
4b69ef3690
@ -28,6 +28,9 @@
|
||||
|
||||
#ifdef WIN32
|
||||
#include <io.h> //_chsize_s
|
||||
#include <fcntl.h>
|
||||
#include <share.h>
|
||||
#include <sys/stat.h>
|
||||
#else
|
||||
#include <unistd.h> //truncate
|
||||
#endif
|
||||
@ -488,7 +491,7 @@ void SaveRecording(const char *filename)
|
||||
{
|
||||
#ifdef WIN32
|
||||
int fd;
|
||||
if (!_sopen_s(&fd, g_recordFile.c_str(), _O_RDWR, _SH_DENYNO, _S_IREAD | _S_IWRITE))
|
||||
if (!_sopen_s(&fd, filename, _O_RDWR, _SH_DENYNO, _S_IREAD | _S_IWRITE))
|
||||
{
|
||||
success = (_chsize_s(fd, size) == 0);
|
||||
_close(fd);
|
||||
|
Loading…
Reference in New Issue
Block a user