From 4b69ef369015a9b9618d2a4284f7977a05b7417d Mon Sep 17 00:00:00 2001 From: smelenchuk Date: Sat, 12 Feb 2011 03:01:54 +0000 Subject: [PATCH] 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 --- Source/Core/Core/Src/OnFrame.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/OnFrame.cpp b/Source/Core/Core/Src/OnFrame.cpp index fa52bd8b1a..dea58d65ae 100644 --- a/Source/Core/Core/Src/OnFrame.cpp +++ b/Source/Core/Core/Src/OnFrame.cpp @@ -28,6 +28,9 @@ #ifdef WIN32 #include //_chsize_s +#include +#include +#include #else #include //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);