Skip to content

Commit

Permalink
fix saving of files
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkkrp committed Oct 30, 2015
1 parent 28c835b commit bf3b85b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sound/HTagLib/Internal.hs
Expand Up @@ -223,9 +223,9 @@ freeFile (FileId ptr) = c_taglib_file_free ptr

saveFile :: FileId -> IO ()
saveFile (FileId ptr) = do
code <- c_taglib_file_save ptr
unless (code == 0) $ throwIO $ mkIOError illegalOperationErrorType
"Sound.HTagLib.Internal.new" Nothing Nothing
success <- toBool <$> c_taglib_file_save ptr
unless success $ throwIO $ mkIOError illegalOperationErrorType
"Sound.HTagLib.Internal.saveFile" Nothing Nothing

-- Tag API

Expand Down

0 comments on commit bf3b85b

Please sign in to comment.