Skip to content

Commit e128cb7

Browse files
committed
Make sure that non null handle is returned from registerTimNotificationMock
Change-Id: I8eca792fb6938150fa0629b11e84f94c0a736a56
1 parent bf0ef57 commit e128cb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

unit_tests/os_interface/windows/mock_gdi_interface.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class MockGdi : public Gdi {
4343

4444
static NTSTATUS __stdcall registerTimNotificationMock(IN D3DKMT_REGISTERTRIMNOTIFICATION *arg) {
4545
getRegisterTrimNotificationArg() = *arg;
46+
arg->Handle = reinterpret_cast<VOID *>(1);
4647
return 0;
4748
}
4849

0 commit comments

Comments
 (0)