mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
PSF: Don't attempt to load files with size 0
This commit is contained in:
parent
f48589005d
commit
e4fca8274e
2 changed files with 4 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#include "stdafx.h"
|
||||
#include "stdafx.h"
|
||||
#include "PSF.h"
|
||||
|
||||
template<>
|
||||
|
|
@ -103,7 +103,7 @@ namespace psf
|
|||
registry result;
|
||||
|
||||
// Hack for empty input (TODO)
|
||||
if (!stream)
|
||||
if (!stream || !stream.size())
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue