Mail Archives: djgpp/2019/08/17/21:34:16
On Sat, 17 Aug 2019 22:47:00 +0300
"stsp (stsp2 AT yandex DOT ru) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
wrote:
> 17.08.2019 22:02, Rod Pemberton пишет:
> If the get descriptor call fails
> we also know this descriptor is currently not user allocated.
> ---
> Which means freed!
No, it doesn't.
Windows - i.e., a non-user - allocates descriptors for itself.
The DPMI host would also be a non-user which allocates descriptors for
itself.
IIRC, the CRT startup code also allocates descriptors for itself.
>> I'm confused by this patch, but I'm also not familiar with what the
>> code does. Even so, I suspect you fixed the problem in the wrong
>> manner. Could you try only modifying the mask to see if that fixes
>> your issue?
>
>This will make thing very DPMI-host-dependent.
>One host only clears P, another one can do other
>things.
DJGPP DPMI apps work for both DOS with DPMI and for Windows in console
windows with Windows' built-in DPMI for V86 mode.
DJGPP code can already run under many DPMI hosts: CWSDPMI, CWSDPR0,
PMODETSR, and Windows 98/SE/ME/NT/2K/XP DPMI in console windows, etc.
Rod Pemberton
--
Let me say it yet again. Reducing gun violence doesn't reduce
violence. Dead is dead, whether by gun, car, hammer, club, or knife.
- Raw text -