diff options
| author | g8bpq <john.wiseman@cantab.net> | 2023-06-29 18:13:31 +0100 |
|---|---|---|
| committer | g8bpq <john.wiseman@cantab.net> | 2023-06-29 18:13:31 +0100 |
| commit | ed81fc5267a230d12a2519e61707025087ec6234 (patch) | |
| tree | 161c0d4e17e63c2a9d4043584268e83ffc783428 /Bpq32.c | |
| parent | 75b5bcc9a97b38c6c0c210bf14fabad9cadf704a (diff) | |
6.0.23.7723.81
Diffstat (limited to 'Bpq32.c')
| -rw-r--r-- | Bpq32.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1173,6 +1173,7 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses // Detect loss of DED application (76)
// Fix connects to Application Alias with UZ7HO Driver (76)
// Fix Interlock of ports on same UZ7HO modem. (76)
+// Add extended Ports command
#define CKernel
@@ -2576,6 +2577,22 @@ BOOL APIENTRY DllMain(HANDLE hInst, DWORD ul_reason_being_called, LPVOID lpReser return 0;
}
+ if (sizeof(struct KISSINFO) > PORTENTRYLEN + 200) // 200 bytes of Hardwaredata
+ {
+ // Catastrophic - Refuse to load
+
+ MessageBox(NULL,"BPQ32 Too much KISS data - Recompile","BPQ32", MB_OK);
+ return 0;
+ }
+
+ if (sizeof(struct _EXTPORTDATA) > PORTENTRYLEN + 200) // 200 bytes of Hardwaredata
+ {
+ // Catastrophic - Refuse to load
+
+ MessageBox(NULL,"BPQ32 Too much _EXTPORTDATA data - Recompile","BPQ32", MB_OK);
+ return 0;
+ }
+
if (sizeof(LINKTABLE) != LINK_TABLE_LEN)
{
// Catastrophic - Refuse to load
|
