mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[warnings] improve array bound checks
This commit is contained in:
@@ -29,12 +29,12 @@ typedef struct
|
||||
extern int ShadowSubsystemEntry(RDP_SHADOW_ENTRY_POINTS* pEntryPoints);
|
||||
extern const char* ShadowSubsystemName(void);
|
||||
|
||||
static RDP_SHADOW_SUBSYSTEM g_Subsystems[] = {
|
||||
static const RDP_SHADOW_SUBSYSTEM g_Subsystems[] = {
|
||||
|
||||
{ ShadowSubsystemName, ShadowSubsystemEntry }
|
||||
};
|
||||
|
||||
static size_t g_SubsystemCount = ARRAYSIZE(g_Subsystems);
|
||||
static const size_t g_SubsystemCount = ARRAYSIZE(g_Subsystems);
|
||||
|
||||
static pfnShadowSubsystemEntry shadow_subsystem_load_static_entry(const char* name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user