mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 07:39:45 -06:00
Use standard C file i/o in PlainFileReader instead of Windows' functions. Fix a memleak in CompressedBlob and VolumeDirectory. Thanks to baby.lueshi for finding the File i/o issue :)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5031 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -20,24 +20,15 @@
|
||||
|
||||
#include "Blob.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <cstdio>
|
||||
#endif
|
||||
|
||||
namespace DiscIO
|
||||
{
|
||||
|
||||
class PlainFileReader : public IBlobReader
|
||||
{
|
||||
#ifdef _WIN32
|
||||
HANDLE hFile;
|
||||
PlainFileReader(HANDLE hFile_);
|
||||
#else
|
||||
FILE* file_;
|
||||
PlainFileReader(FILE* file__);
|
||||
#endif
|
||||
s64 size;
|
||||
|
||||
public:
|
||||
|
Reference in New Issue
Block a user