diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 17:02:48 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 17:02:48 -0500 |
| commit | c45e650eabf3eb162b8e7bb007b4f8a760fb512f (patch) | |
| tree | 4c93e7a9578b62966a2cf0152abc36baf795eb19 /runtime/test | |
| parent | 22a092e6a51d273bb342be1576accbfc4c7f421e (diff) | |
| parent | 4f6b7536938f7375b3367d034bce1b3e0c3b76ac (diff) | |
Merge pull request #3576 from Felix Croasdale
Diffstat (limited to 'runtime/test')
| -rw-r--r-- | runtime/test/xgameruntime_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/test/xgameruntime_test.cpp b/runtime/test/xgameruntime_test.cpp index 21c2cfa54..19ff770ea 100644 --- a/runtime/test/xgameruntime_test.cpp +++ b/runtime/test/xgameruntime_test.cpp | |||
| @@ -412,13 +412,13 @@ void check_run_time_load() { | |||
| 412 | {0x67ce4bfc, 0xb1d1, 0x4ac7, {0xbc, 0x3a, 0xcb, 0x92, 0x19, 0xa9, 0x7a, 0x85}}, | 412 | {0x67ce4bfc, 0xb1d1, 0x4ac7, {0xbc, 0x3a, 0xcb, 0x92, 0x19, 0xa9, 0x7a, 0x85}}, |
| 413 | {0xdadc2895, 0x34b0, 0x4ef5, {0xa8, 0x3e, 0x45, 0x11, 0x4d, 0x62, 0x9b, 0x80}}, | 413 | {0xdadc2895, 0x34b0, 0x4ef5, {0xa8, 0x3e, 0x45, 0x11, 0x4d, 0x62, 0x9b, 0x80}}, |
| 414 | system5}; | 414 | system5}; |
| 415 | bool all = true; | 415 | bool all_inherited = true; |
| 416 | for (const GUID& iid : chain) { | 416 | for (const GUID& iid : chain) { |
| 417 | void* same = nullptr; | 417 | void* same = nullptr; |
| 418 | all = all && query(&system_cls, iid, &same) == S_OK && same == sy; | 418 | all_inherited = all_inherited && query(&system_cls, iid, &same) == S_OK && same == sy; |
| 419 | if (same) release(same); | 419 | if (same) release(same); |
| 420 | } | 420 | } |
| 421 | check(all, "IXSystemImpl5 answers for every interface it inherits (IXSystemImpl .. IXSystemImpl4)"); | 421 | check(all_inherited, "IXSystemImpl5 answers for every interface it inherits (IXSystemImpl .. IXSystemImpl4)"); |
| 422 | check(reinterpret_cast<IdQuery>(slot(sy, 5))(sy, sizeof(buf), buf, &used) == S_OK && used == 45 && | 422 | check(reinterpret_cast<IdQuery>(slot(sy, 5))(sy, sizeof(buf), buf, &used) == S_OK && used == 45 && |
| 423 | reinterpret_cast<IdQuery>(slot(sy, 5))(sy, 44, buf, &used) == | 423 | reinterpret_cast<IdQuery>(slot(sy, 5))(sy, 44, buf, &used) == |
| 424 | HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) && | 424 | HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) && |