View Issue Details

IDProjectCategoryView StatusLast Update
0006348JEDI Code LibraryJclCompressionpublic2014-10-30 16:35
ReporterldsandonAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product VersionVersion 2.5 (Subversion repository/Daily zips) 
Target VersionFixed in Version 
Summary0006348: Wrong call to SysErrorMessage() in SevenzipCheck()
DescriptionSevenZipCheck() calls SysErrorMessage() when raising an exception, but:

1) SevenZip APIs return an HRESULT, which is not handled by SysErrorMessage() and may return a wrong and deceiveing message. For example if a call returns S_FALSE (which is defined as $00000001), a call to SysErrorMessage() will return as if it was called with ERROR_INVALID_FUNCTION (which is 1).

2) The real error code is not returned in the function HRESULT return value, but is for example returned in the SetOperationResult() methods of some callback interfaces.

If a function call doesn't succeed, only the HRESULT should be returned in the exception, it doesn't look 7zip uses fully meaningful HRESULT codes.
TagsNo tags attached.
Fixed in GIT commit
Fixed in SVN revision
IDE versionAll

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2014-10-30 16:35 ldsandon New Issue
2014-10-30 16:35 ldsandon IDE version => All