diff --git a/cwAudioFile.cpp b/cwAudioFile.cpp index 89aa770..e2abe43 100644 --- a/cwAudioFile.cpp +++ b/cwAudioFile.cpp @@ -964,7 +964,7 @@ namespace cw { rc_t rc; - if((rc = open( h, fn, afInfoPtr )) != kOkRC ) + if((rc = open( h, fn, afInfoPtr )) == kOkRC ) if( begFrmIdx > 0 ) rc = seek( h, begFrmIdx );