summaryrefslogtreecommitdiff
path: root/DOSAPI.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-03-08 02:27:14 +0000
committerDave Hibberd <hibby@debian.org>2026-03-08 02:27:14 +0000
commit7aa6cec9300c8a3e9ef98b19791ad324d487512e (patch)
tree18c0487da11274dc1c4b67787ef12b1cefa15ae8 /DOSAPI.c
parentdae2bbc7215a8361e7b9092e6c307491c7e5722a (diff)
New upstream version 6.0.25.33+repackupstream/6.0.25.33+repack
Diffstat (limited to 'DOSAPI.c')
-rw-r--r--DOSAPI.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/DOSAPI.c b/DOSAPI.c
index 5780608..d1c1131 100644
--- a/DOSAPI.c
+++ b/DOSAPI.c
@@ -175,8 +175,8 @@ VOID CHOSTAPI(ULONG * pEAX, ULONG * pEBX, ULONG * pECX, ULONG * pEDX, VOID ** pE
Stream = (EAX & 0xFF);
n = Stream - 1; // API Numbers Streams 1-64
- if (n < 0 || n > 63)
- n = 64;
+ if (n < 0 || n > BPQHOSTSTREAMS - 1)
+ n = BPQHOSTSTREAMS;
HostVec = &BPQHOSTVECTOR[n];
Session = HostVec->HOSTSESSION;