summaryrefslogtreecommitdiff
path: root/Bpq32.c
diff options
context:
space:
mode:
Diffstat (limited to 'Bpq32.c')
-rw-r--r--Bpq32.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/Bpq32.c b/Bpq32.c
index 23f53e9..e88e26a 100644
--- a/Bpq32.c
+++ b/Bpq32.c
@@ -1292,6 +1292,7 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses
// Improvments to INP3 (4, 5)
// Add Node API /api/tcpqueues (5)
// Add sending link events to OARC API (disabled by default) (6)
+// Add option to write monitor output to a file (6)
// Fix possible program error in Telnet_Connected (7)
// Close links when program is closed down (7)
// Fix possible problem with deleting routes when using both NODES and INP3 routing on same link (7)
@@ -1300,12 +1301,10 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses
// Fix FRMR caused by sending SREJ when no frames outstanding (8)
// Fix some issues with NetromX connects and Route Selection when running INP3 and NODES routing (9)
// Fix connecting to a netrom node with c p node command (10)
-<<<<<<< Updated upstream
-||||||| Stash base
-=======
// Add validation of INP3 RTT messages and various INP3 fixes (12)
// Change NetromX connect syntax to Service@Node to fix passing commands to local applications (12)
->>>>>>> Stashed changes
+// Add config file option to enable writing monitor data to a file at startup (13)
+
#define CKernel
@@ -2825,7 +2824,13 @@ BOOL APIENTRY DllMain(HANDLE hInst, DWORD ul_reason_being_called, LPVOID lpReser
MessageBox(NULL,"NODES Table .c and .asm mismatch - fix and rebuild", "BPQ32", MB_OK);
return 0;
}
-
+
+ if (sizeof(struct NR_DEST_ROUTE_ENTRY) != sizeof(struct INP3_DEST_ROUTE_ENTRY))
+ {
+ MessageBox(NULL,"Route Entry mismatch - fix and rebuild", "BPQ32", MB_OK);
+ return 0;
+ }
+
GetSemaphore(&Semaphore, 4);
BPQHOSTVECPTR = &BPQHOSTVECTOR[0];
@@ -4223,13 +4228,12 @@ int APIENTRY Restart()
hProc = OpenProcess(PROCESS_TERMINATE | PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, TimerInst);
- if (hProc)
- {
- TerminateProcess(hProc, 0);
- CloseHandle(hProc);
- }
+ if (hProc)
+ {
+ TerminateProcess(hProc, 0);
+ CloseHandle(hProc);
+ }
-
return 0;
}