Skip to content

Commit 733bc7c

Browse files
author
Tor Lillqvist
committed
Output well-known VT_ERROR HRESULT values symbolically
1 parent 6b6887d commit 733bc7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ inline std::basic_ostream<char, traits>& operator<<(std::basic_ostream<char, tra
759759
stream << rVariant.pdispVal;
760760
break;
761761
case VT_ERROR:
762-
stream << to_hex(rVariant.lVal, 8);
762+
stream << HRESULT_to_string(rVariant.lVal);
763763
break;
764764
case VT_BOOL:
765765
stream << (rVariant.boolVal ? "True" : "False");

0 commit comments

Comments
 (0)