projects
/
openitg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54c5d18
)
Check the return value of rfod->Read
author
Mikko Rasa
<tdb@tdb.fi>
Wed, 2 Nov 2011 12:00:21 +0000
(14:00 +0200)
committer
Mikko Rasa
<tdb@tdb.fi>
Wed, 2 Nov 2011 12:00:21 +0000
(14:00 +0200)
src/RageFileDriverProbe.cpp
patch
|
blob
|
history
diff --git
a/src/RageFileDriverProbe.cpp
b/src/RageFileDriverProbe.cpp
index
39d5504
..
d26c6d5
100644
(file)
--- a/
src/RageFileDriverProbe.cpp
+++ b/
src/RageFileDriverProbe.cpp
@@
-29,7
+29,7
@@
RageFileObjDirect *RageFileDriverProbe::CreateInternal( const CString &sPath )
got = rfod->Read( sHeader, 2 );
SAFE_DELETE( rfod );
- if (
sHeader == ":|" || sHeader == "8O"
)
+ if (
got == 2 && ( sHeader == ":|" || sHeader == "8O" )
)
{
LOG->Debug( "%s: returning %s as RageFileObjCrypt_ITG2", __FUNCTION__, sPath.c_str() );
return new RageFileObjCrypt_ITG2( "" );