mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[server,shadow] fix loop increment warning
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user