Mail Archives: djgpp/2000/06/14/00:00:19
In article <Pine DOT SUN DOT 3 DOT 91 DOT 1000613133915 DOT 16888Z-100000 AT is>,
eliz AT is DOT elta DOT co DOT il says...
>
> On Tue, 13 Jun 2000, Rob Kramer wrote:
>
> > /* Lock segment (dpmi 0x0600). */
> > if (__dpmi_lock_linear_region (&info) == -1) {
> > __dpmi_free_ldt_descriptor (selector);
> > return false;
> > }
>
> I don't think this is required: the mapped region is already locked by
> the DPMI host. In fact, with some DPMI hosts this call will actually
> fail, thus creating an illusion that the whole map operation didn't
> work.
Okidokie. It worked on cwsdpmi, so I never changed the code. I remember
the segment unlocking function was actually a DPMI 1.0 call, which I
found a bit strange..
Cheers,
RoB
- Raw text -