From 97f5f6453ab7092fbbeb70059cd1fe2fd0dd9df4 Mon Sep 17 00:00:00 2001 From: Gerrit Swaneveld <55601905+gerritsMSFT@users.noreply.github.com> Date: Thu, 5 Sep 2024 15:22:00 -0700 Subject: [PATCH] Update Capture.cpp Add Return check as NTStatus --- avstream/avscamera/sys/Capture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avstream/avscamera/sys/Capture.cpp b/avstream/avscamera/sys/Capture.cpp index 730370e60..52a070ed5 100644 --- a/avstream/avscamera/sys/Capture.cpp +++ b/avstream/avscamera/sys/Capture.cpp @@ -1462,7 +1462,7 @@ Return Value: // if( Pin->DeviceState == KSSTATE_STOP ) { - if( !CapPin->CaptureBitmapInfoHeader( ) ) + if( !NT_SUCCESS(CapPin->CaptureBitmapInfoHeader( ))) { Status = STATUS_INSUFFICIENT_RESOURCES; }