Commit bd1ed82
authored
Fix
* Fix incorrect HRESULT constant value for `TYPE_E_ELEMENTNOTFOUND`.
The constant for `TYPE_E_ELEMENTNOTFOUND` was defined with an incorrect
integer value, which did not correspond to the official HRESULT `0x8002802B`.
This change corrects the value to `-2147319765`.
* test: Verify HRESULT for GetTypeInfoOfGuid with null GUID.
Assert that calling `ITypeLib::GetTypeInfoOfGuid` with a null GUID
raises a `COMError` with the specific HRESULT
`TYPE_E_ELEMENTNOTFOUND`.
* Refactor: Use `IID_IFile` constant in `test_typeinfo.py`.
In `comtypes/test/test_typeinfo.py`, the hardcoded GUID for `IFile`
was replaced with the `IID_IFile` constant to improve readability.TYPE_E_ELEMENTNOTFOUND HRESULT constant value. (#883)1 parent b422668 commit bd1ed82
2 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | | - | |
| 88 | + | |
88 | 89 | | |
| 90 | + | |
89 | 91 | | |
90 | | - | |
91 | | - | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
96 | | - | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
0 commit comments