mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 03:07:56 +01:00
[Screen Ruler] Fix possible crash in CaptureSingleFrame (#20275)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user