dos4gw stub exec failed

Jukka Heinonen jhei at
Wed Jan 22 12:16:59 CST 2003

Enrico Horn wrote:
> I have some dos games that want to exec dos4gw.exe when starting.
> but this seems to fail.
> I hope i read the debug messages correctly and the comment from
> file:Win32HandleToDosFileHandle is still valid.
> what happens is dos:int21 wants to open file with the dos handle and 
> then read from it.
> reading the file calls the function file:ReadFile with the
> converted win32 file handle which is invalid if the above mentioned 
> comment is correct.
> Any ideas how to solve this or am I completely off-track here.

Well, I don't actually know what is wrong with dos4gw.
It is probably something subtle with int21 functions. However,
why it hangs is something I haven't checked out.

You could try running those programs using DOS32A (DOS/32 Advanced)
extender. It seems to work quite well. I just posted a patch that
is required to get its installer working, though, so you might
have some trouble unpacking it...

If you get those games to work under dos32a you will probably find out
that Wine SVGA support is lacking. That is something I have considered
to fix if I can find the time to do it.

Jukka Heinonen <>

More information about the wine-devel mailing list