fix decompressing of wii discs (who wrote this? XD )

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3914 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-07-31 03:11:46 +00:00
parent 7eed236df9
commit 903346e06f
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ bool DecompressBlobToFile(const char* infile, const char* outfile, CompressCB ca
#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(f), (long)header.data_size);
_chsize_s(_fileno(f), header.data_size);
#else
ftruncate(fileno(f), header.data_size);
#endif