mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 15:59:23 +01:00
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:
parent
7eed236df9
commit
903346e06f
@ -320,7 +320,7 @@ bool DecompressBlobToFile(const char* infile, const char* outfile, CompressCB ca
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// ector: _chsize sucks, not 64-bit safe
|
// ector: _chsize sucks, not 64-bit safe
|
||||||
// F|RES: changed to _chsize_s. i think it is 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
|
#else
|
||||||
ftruncate(fileno(f), header.data_size);
|
ftruncate(fileno(f), header.data_size);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user