[server,shadow] fix loop increment warning

This commit is contained in:
Armin Novak
2023-07-29 13:08:38 +02:00
committed by akallabeth
parent 5b27ada80a
commit 8ed3f8bf40

View File

@@ -40,9 +40,9 @@ static pfnShadowSubsystemEntry shadow_subsystem_load_static_entry(const char* na
{
if (!name)
{
for (size_t index = 0; index < g_SubsystemCount; index++)
if (g_SubsystemCount > 0)
{
const RDP_SHADOW_SUBSYSTEM* cur = &g_Subsystems[index];
const RDP_SHADOW_SUBSYSTEM* cur = &g_Subsystems[0];
WINPR_ASSERT(cur->entry);
return cur->entry;