Mail Archives: djgpp-workers/2001/09/05/09:47:40
> On Tue, 4 Sep 2001, Charles Sandmann wrote:
>
> > If we assume that NT flavors always have handles 0..3
>
> Is that what happens with other DPMI hosts? In other words, is it
> reasonable to expect that?
CWSDPMI does 0..3. Many others do also, but I can't say they all do.
No, it's not reasonable to expect this (I haven't tested it either).
But it's not reasonable to expect the DPMI provider to neglect to
give you the handle either ... The only down side of this fix would
be if the handle is bogus, and they don't issue handle numbers 0..3,
then we can't check or free the handles, and you would get the same
behavior we currently see under Win2K (we would replace one bogus
handle with another). But if it's already broken ...
The dbgcom.c code currently doesn't check/notify on failure status
with a bad handle. When I convert the second assembly block to calling
the standard DPMI calls I'll add those checks.
- Raw text -