mirror of
https://github.com/LIV2/WinUAE.git
synced 2025-12-06 00:12:52 +00:00
FIx NIC array overflow and increased size.
This commit is contained in:
parent
5b8d5c6007
commit
a8da912420
@ -232,7 +232,8 @@ bool ethernet_enumerate (struct netdriverdata **nddp, int romtype)
|
||||
#ifdef WITH_UAENET_PCAP
|
||||
nd = uaenet_enumerate (NULL);
|
||||
if (nd) {
|
||||
for (int i = 0; i < MAX_TOTAL_NET_DEVICES; i++) {
|
||||
int last = MAX_TOTAL_NET_DEVICES - 1 - j;
|
||||
for (int i = 0; i < last; i++) {
|
||||
if (nd[i].active)
|
||||
nddp[j++] = &nd[i];
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#define MAX_TOTAL_NET_DEVICES 10
|
||||
#define MAX_TOTAL_NET_DEVICES 30
|
||||
|
||||
uaecptr netdev_startup(TrapContext*, uaecptr resaddr);
|
||||
void netdev_install(void);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user