regsvr32: Replace printf calls with WriteConsole function (try 2)

Hugh McMaster hugh.mcmaster at masterindexing.com
Tue Mar 18 20:26:30 CDT 2014


This patch adds the function output_write to regsvr32.c.  The function calls LoadString, FormatMessage and WriteConsole to output string text to the console.

I've chosen to use ANSI functions in this patch to make it easier to follow the changes. WriteFile cannot be used if WriteConsoleA fails in this instance, as conversion to an OEM charset from ANSI doesn't appear possible.  This will be rectified once the source is converted to Unicode in a later patch.

Note that this patch supersedes patches 103117, 103118 and 103119.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-regsvr32-output.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140318/e871ec3b/attachment-0001.txt>


More information about the wine-patches mailing list