Mail Archives: djgpp/1996/10/27/18:37:06
> __dpmi_get_segment_base_address(_my_cs(), &address);
>
> info.address = (int) address + (int) __djgpp_ds_alias;
Almost certainly should be & __djgpp_ds_alias ....
> info.size = 2;
> errval = __dpmi_lock_linear_region(&info);
>
>
> Hmmm. That's the piece of code we are talking about. I have some ideas
> what all the other __dpmi_lock_linear_region() calls (not quoted here)
> are supposed to do, but I don't understand this one. What are they trying
> to lock here? Can I remove that code without damage?
This should be removed - djgpp_ds_alias is already locked anyway! And
yes, this is buggy code, broken, and r3 catches it where r2 let it get by.
- Raw text -