diff options
Diffstat (limited to 'src/wavpack/wavpack.cc')
-rw-r--r-- | src/wavpack/wavpack.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wavpack/wavpack.cc b/src/wavpack/wavpack.cc index 4e35df5..10224a8 100644 --- a/src/wavpack/wavpack.cc +++ b/src/wavpack/wavpack.cc @@ -111,7 +111,9 @@ static bool wv_attach (const char * filename, VFSFile & wv_input, wvc_input = VFSFile (corrFilename, "r"); } - * ctx = WavpackOpenFileInputEx (& wv_readers, & wv_input, & wvc_input, error, flags, 0); + * ctx = WavpackOpenFileInputEx (& wv_readers, & wv_input, + wvc_input ? (& wvc_input) : nullptr, error, flags, 0); + return (* ctx != nullptr); } |