diff options
Diffstat (limited to 'runtime/test/xgameruntime_test.cpp')
| -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) && |