[PATCH] reg.exe: Modernise print functions
Jonathan Vollebregt
jnvsor at gmail.com
Mon Nov 10 07:05:16 CST 2014
Unfortunately if I pass in anything besides a pointer it will segfault.
It actually wants a format string "%1!d!" for ints which is hardly
compact (Especially since we have to type it out in a WCHAR array)
There must be a better way to get the size of the string...
On 11/10/2014 01:44 PM, Hugh McMaster wrote:
> On Monday, 10 Nov 2014 13:17:56 +0100, Jonathan Vollebregt wrote:
>> That was my thought, but it doesn't appear to be parsing printf
>> parameters properly:
>>
>> Sticking this in main:
>>
>>> static const WCHAR testW[] = {'w','0','o','t','\n','%','s','\n',0};
>>> reg_printfW(testW, deleteW);
>>
>> Results in the output:
>>
>>> w0ot
>>> s
>
> At a quick glance, %s should be %1. FormatMessage() accepts numerals.
>
>
More information about the wine-devel
mailing list