From: Pali Rohár pali@kernel.org
According to the DPMI specification, when DPMI function 0102h (Resize DOS Memory Block) fails then AX has to be set to error code and BX to maximum possible block size.
As the wine does not implement the DPMI function 0102h (Resize DOS Memory Block), set the error code to 0x0008 (insufficient memory) and maximum possible block size to 0 (no memory available).
Signed-off-by: Pali Rohár pali@kernel.org --- dlls/krnl386.exe16/int31.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/krnl386.exe16/int31.c b/dlls/krnl386.exe16/int31.c index 45c9fd92c34..404a04a16b7 100644 --- a/dlls/krnl386.exe16/int31.c +++ b/dlls/krnl386.exe16/int31.c @@ -382,6 +382,8 @@ void WINAPI DOSVM_Int31Handler( CONTEXT *context ) case 0x0102: /* Resize DOS Memory Block */ FIXME( "resize DOS memory block (0x%04x, 0x%x paragraphs) - unimplemented\n", DX_reg(context), BX_reg(context) ); + SET_AX( context, 0x0008 ); /* insufficient memory */ + SET_BX( context, 0 ); /* maximum possible block size */ SET_CFLAG( context ); break;