mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-04 00:56:07 +01:00
c348332143
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
22 lines
791 B
Diff
22 lines
791 B
Diff
https://sourceforge.net/p/p7zip/bugs/226/
|
|
|
|
--- a/CPP/Windows/ErrorMsg.cpp 2020-05-28 00:35:02.729896917 +0200
|
|
+++ b/CPP/Windows/ErrorMsg.cpp 2020-05-28 00:40:01.676442629 +0200
|
|
@@ -13,7 +13,7 @@
|
|
const char * txt = 0;
|
|
AString msg;
|
|
|
|
- switch(errorCode) {
|
|
+ switch(HRESULT(errorCode)) {
|
|
case ERROR_NO_MORE_FILES : txt = "No more files"; break ;
|
|
case E_NOTIMPL : txt = "E_NOTIMPL"; break ;
|
|
case E_NOINTERFACE : txt = "E_NOINTERFACE"; break ;
|
|
@@ -43,7 +43,7 @@
|
|
const char * txt = 0;
|
|
AString msg;
|
|
|
|
- switch(messageID) {
|
|
+ switch(HRESULT(messageID)) {
|
|
case ERROR_NO_MORE_FILES : txt = "No more files"; break ;
|
|
case E_NOTIMPL : txt = "E_NOTIMPL"; break ;
|
|
case E_NOINTERFACE : txt = "E_NOINTERFACE"; break ;
|