reg: Avoid wvsprintfW() so we can avoid loading user32.dll.
This commit is contained in:
parent
b700a1b11a
commit
3bb449468d
|
@ -5,7 +5,8 @@ SRCDIR = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
MODULE = reg.exe
|
MODULE = reg.exe
|
||||||
APPMODE = -mconsole -municode
|
APPMODE = -mconsole -municode
|
||||||
IMPORTS = advapi32 user32 kernel32
|
IMPORTS = advapi32 kernel32
|
||||||
|
DELAYIMPORTS = user32
|
||||||
|
|
||||||
C_SRCS = reg.c
|
C_SRCS = reg.c
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <wine/unicode.h>
|
||||||
#include "reg.h"
|
#include "reg.h"
|
||||||
|
|
||||||
static int reg_printfW(const WCHAR *msg, ...)
|
static int reg_printfW(const WCHAR *msg, ...)
|
||||||
|
@ -27,7 +28,7 @@ static int reg_printfW(const WCHAR *msg, ...)
|
||||||
WCHAR msg_buffer[8192];
|
WCHAR msg_buffer[8192];
|
||||||
|
|
||||||
va_start(va_args, msg);
|
va_start(va_args, msg);
|
||||||
wvsprintfW(msg_buffer, msg, va_args);
|
vsprintfW(msg_buffer, msg, va_args);
|
||||||
va_end(va_args);
|
va_end(va_args);
|
||||||
|
|
||||||
wlen = lstrlenW(msg_buffer);
|
wlen = lstrlenW(msg_buffer);
|
||||||
|
|
Loading…
Reference in New Issue