From b8429b2b4614450abc6a0ca3f2fcbe0d98190eab Mon Sep 17 00:00:00 2001 From: Ryo Suzuki Date: Mon, 29 Jul 2024 15:33:58 +0900 Subject: [PATCH] [Windows] fix #1250 --- .../WindowsDesktop/Siv3D/WebcamInfo/SivWebcamInfo.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/WebcamInfo/SivWebcamInfo.cpp b/Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/WebcamInfo/SivWebcamInfo.cpp index aa49d1917..135ba8f41 100644 --- a/Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/WebcamInfo/SivWebcamInfo.cpp +++ b/Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/WebcamInfo/SivWebcamInfo.cpp @@ -46,6 +46,11 @@ namespace s3d return results; } + if (not enumMoniker) + { + return results; + } + ComPtr moniker; for (uint32 index = 0; enumMoniker->Next(1, &moniker, nullptr) == S_OK; ++index)