mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 12:35:27 +00:00
DiscScrubber: only close the file if it was successfully opened, fixes crash if you try to compress a wii game set to readonly
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3626 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
52e424485f
commit
39b9b887c1
@ -195,7 +195,7 @@ bool Scrub(const char* filename, CompressCB callback, void* arg)
|
||||
ERROR_LOG(DISCIO, "Really weird - failed to mark scrubbed disk as scrubbed :s");
|
||||
|
||||
cleanup:
|
||||
fclose(pFile);
|
||||
if (pFile) fclose(pFile);
|
||||
delete m_Sector1;
|
||||
delete m_FreeTable;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user