diff options
author | James Rowe <jroweboy@gmail.com> | 2018-01-20 08:48:02 +0100 |
---|---|---|
committer | James Rowe <jroweboy@gmail.com> | 2018-01-21 00:45:11 +0100 |
commit | 096be1663682f38d572e9816e3350e0dc9f13168 (patch) | |
tree | a2f695170d9a3e0e98cebf823087cdb65d5af00f /src/common/file_util.cpp | |
parent | CMake: Conditionally turn on bundled libs for MSVC (diff) | |
download | yuzu-096be1663682f38d572e9816e3350e0dc9f13168.tar yuzu-096be1663682f38d572e9816e3350e0dc9f13168.tar.gz yuzu-096be1663682f38d572e9816e3350e0dc9f13168.tar.bz2 yuzu-096be1663682f38d572e9816e3350e0dc9f13168.tar.lz yuzu-096be1663682f38d572e9816e3350e0dc9f13168.tar.xz yuzu-096be1663682f38d572e9816e3350e0dc9f13168.tar.zst yuzu-096be1663682f38d572e9816e3350e0dc9f13168.zip |
Diffstat (limited to 'src/common/file_util.cpp')
-rw-r--r-- | src/common/file_util.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 5ab036b34..4e1d702f7 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -873,20 +873,19 @@ bool IOFile::Flush() { } bool IOFile::Resize(u64 size) { - if (!IsOpen() || - 0 != + if (!IsOpen() || 0 != #ifdef _WIN32 - // ector: _chsize sucks, not 64-bit safe - // F|RES: changed to _chsize_s. i think it is 64-bit safe - _chsize_s(_fileno(m_file), size) + // ector: _chsize sucks, not 64-bit safe + // F|RES: changed to _chsize_s. i think it is 64-bit safe + _chsize_s(_fileno(m_file), size) #else - // TODO: handle 64bit and growing - ftruncate(fileno(m_file), size) + // TODO: handle 64bit and growing + ftruncate(fileno(m_file), size) #endif - ) + ) m_good = false; return m_good; } -} // namespace +} // namespace FileUtil |