krnl386: Invalid console handles should translate into real handles when creating a new process (try 2).

Erich E. Hoover erich.e.hoover at
Thu Apr 23 11:52:38 CDT 2015

The current mechanism for initializing the DOS handles for a process
uses DuplicateHandle, which converts INVALID_HANDLE_VALUE into a
usable handle (but not 0).  Without this fix the Caesar III demo
installer crashes with an unhandled page fault.  Per AJ's request,
this version of the patch uses a handle to the NULL device instead of
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-krnl386-Invalid-console-handles-should-translate-int.patch
Type: text/x-diff
Size: 2599 bytes
Desc: not available
URL: <>

More information about the wine-patches mailing list