callbacks start from 1
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1157
This commit is contained in:
parent
8ca9fc4faa
commit
1c5b995c6d
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ static Bitu illegal_handler(void) {
|
|||
}
|
||||
|
||||
Bitu CALLBACK_Allocate(void) {
|
||||
for (Bitu i=0;(i<CB_MAX);i++) {
|
||||
for (Bitu i=1;(i<CB_MAX);i++) {
|
||||
if (CallBack_Handlers[i]==&illegal_handler) {
|
||||
CallBack_Handlers[i]=0;
|
||||
return i;
|
||||
|
|
Loading…
Add table
Reference in a new issue