Skip to content

Commit

Permalink
[Screen Ruler] Fix possible crash in CaptureSingleFrame (#20275)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyoyuppe committed Sep 5, 2022
1 parent 5d4b365 commit feead9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ MappedTextureView D3DCaptureState::CaptureSingleFrame()
wil::shared_event frameArrivedEvent(wil::EventOptions::ManualReset);

frameCallback = [frameArrivedEvent, &result, this](MappedTextureView tex) {
if (result)
if (frameArrivedEvent.is_signaled())
return;

StopCapture();
Expand Down

0 comments on commit feead9c

Please sign in to comment.