leecher1337 / ntvdmx64

Run Microsoft Windows NTVDM (DOS) on 64bit Editions
780 stars 80 forks source link

DPMI Bug #164

Closed Valsamon closed 2 years ago

Valsamon commented 2 years ago

The DPMI host does not zero extend to EDI the protected mode offset returned in DI if functions 305h and 306h are called by a 32-bit client. AFAIK a 32-bit DPMI client should expect to find the offset in EDI, not just in DI, but the upper word of EDI seems to be preserved across the call instead of being zeroed.

leecher1337 commented 2 years ago

Thanks for reporting, confirmed with attached test program. dpmitst.zip

leecher1337 commented 2 years ago

No comments have been made within 30 days and a fix was deployed, assuming that issue is resolved with patch, closing.