[PATCH] reg.exe: Modernise print functions

Jonathan Vollebregt jnvsor at gmail.com
Mon Nov 10 05:43:33 CST 2014


>     WCHAR msg_buffer[1024];

No easy way to get the expected size and dynamically allocate the output 
I take it?

I looked into it before but besides _vscprintf (In msvcrt, which we're 
not allowed to use) there doesn't seem to be a way to get the expected 
output size besides perhaps growing the buffer over and over again until 
it fits (Which seems inefficient for a simple printing function)



More information about the wine-devel mailing list