From 903346e06f58aa231f0a51808deea010b7891e6d Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Fri, 31 Jul 2009 03:11:46 +0000 Subject: [PATCH] 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 --- Source/Core/DiscIO/Src/CompressedBlob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DiscIO/Src/CompressedBlob.cpp b/Source/Core/DiscIO/Src/CompressedBlob.cpp index ec6b2c12a0..14b686fd46 100644 --- a/Source/Core/DiscIO/Src/CompressedBlob.cpp +++ b/Source/Core/DiscIO/Src/CompressedBlob.cpp @@ -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