From 68235953528ccc34f3881ffd2e1a65f90f21866c Mon Sep 17 00:00:00 2001 From: Chase Payne Date: Sat, 14 Sep 2024 11:53:18 -0500 Subject: [PATCH] fix compliler errors --- tools/ddprobe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ddprobe.cpp b/tools/ddprobe.cpp index 22a2a210..f33f7517 100644 --- a/tools/ddprobe.cpp +++ b/tools/ddprobe.cpp @@ -147,7 +147,7 @@ test_frame_capture(dxgi::dup_t &dup, ComPtr device) { std::cout << "Frame acquired successfully." << std::endl; ComPtr frameTexture; - HRESULT status = frameResource->QueryInterface(IID_PPV_ARGS(&frameTexture)); + status = frameResource->QueryInterface(IID_PPV_ARGS(&frameTexture)); if (FAILED(status)) { std::cout << "Error: Failed to query texture interface from frame resource [0x"sv << util::hex(status).to_string_view() << ']' << std::endl; return status; @@ -176,7 +176,7 @@ test_frame_capture(dxgi::dup_t &dup, ComPtr device) { } auto contextCleanup = util::fail_guard([&context, &stagingTexture]() { - context->Unmap(stagingTexture.Get()); + context->Unmap(stagingTexture.Get(), 0); }); if (is_valid_frame(mappedResource, frameDesc)) {