[Bug 5541] WriteConsole can't write to stdout; affects e.g. wsh's cscript' s usage message

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Jan 24 11:48:46 CST 2008


http://bugs.winehq.org/show_bug.cgi?id=5541


Saulius K. <saulius2 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |saulius2 at gmail.com




--- Comment #12 from Saulius K. <saulius2 at gmail.com>  2008-01-24 11:48:45 ---
The bug may be in GetFileType() and equally in GetStdHandle(), while the last
returns constant for STD_OUTPUT_HANDLE independently from the
IMAGE_OPTIONAL_HEADER32.Subsystem field, read from the file header of EXE file
used to create our process.

I was working on a test case, but due to fragility of hand-constructed PE-EXE
file and inability to easy change the program path inside dump of testable
PE-EXE I decided to wrote a tool to help myself.  Tool would compile small S
(asm) file to a small EXE file and then parse it's PE header + disasm it back
into C code :)

With it, it would be easier to test GetFileType and GetStdHandle, but life
changes and I got too busy month ago.  There is left a little to do to finish
it, though, so if no one beats me to it, lets hope initial tests in some time
soon.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list