Dont return success when peeking internal handle and no handle is returned

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-12-07 17:16:31 +00:00
committed by Compute-Runtime-Automation
parent 668149ab81
commit e1900c240e
3 changed files with 21 additions and 18 deletions

View File

@@ -74,7 +74,7 @@ class WddmAllocation : public GraphicsAllocation {
int peekInternalHandle(MemoryManager *memoryManager, uint64_t &handle) override {
handle = ntSecureHandle;
return 0;
return handle == 0;
}
uint64_t *getSharedHandleToModify() {