https://git.reactos.org/?p=reactos.git;a=commitdiff;h=de5f67726be1b385ad29766dfec6082f0e26b2c7
commit de5f67726be1b385ad29766dfec6082f0e26b2c7 Author: Eric Kohl <[email protected]> AuthorDate: Fri Apr 10 20:58:02 2020 +0200 Commit: Eric Kohl <[email protected]> CommitDate: Fri Apr 10 20:58:02 2020 +0200 [DEVMGR] Remove ATLASSERTs from ListDevicesByType and RecurseChildDevices Suggested by Mark Jansen. Thanks! --- dll/win32/devmgr/devmgmt/DeviceView.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dll/win32/devmgr/devmgmt/DeviceView.cpp b/dll/win32/devmgr/devmgmt/DeviceView.cpp index 214c5f711a3..8a59b6ef85e 100644 --- a/dll/win32/devmgr/devmgmt/DeviceView.cpp +++ b/dll/win32/devmgr/devmgmt/DeviceView.cpp @@ -458,7 +458,6 @@ CDeviceView::ListDevicesByType() ClassNode = GetClassNode(&ClassGuid); if (ClassNode == nullptr) { - ATLASSERT(FALSE); ClassIndex++; continue; } @@ -511,7 +510,6 @@ CDeviceView::ListDevicesByType() DeviceNode = GetDeviceNode(DeviceInfoData.DevInst); if (DeviceNode == nullptr) { - ATLASSERT(bClassUnknown == true); DeviceIndex++; continue; } @@ -616,7 +614,6 @@ CDeviceView::RecurseChildDevices( DeviceNode = dynamic_cast<CDeviceNode *>(GetDeviceNode(Device)); if (DeviceNode == nullptr) { - ATLASSERT(FALSE); return false; } @@ -651,7 +648,6 @@ CDeviceView::RecurseChildDevices( DeviceNode = dynamic_cast<CDeviceNode *>(GetDeviceNode(Device)); if (DeviceNode == nullptr) { - ATLASSERT(FALSE); continue; }
