Commit 3bb44946 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

reg: Avoid wvsprintfW() so we can avoid loading user32.dll.

parent b700a1b1
......@@ -5,7 +5,8 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = reg.exe
APPMODE = -mconsole -municode
IMPORTS = advapi32 user32 kernel32
IMPORTS = advapi32 kernel32
DELAYIMPORTS = user32
C_SRCS = reg.c
......
......@@ -17,6 +17,7 @@
*/
#include <windows.h>
#include <wine/unicode.h>
#include "reg.h"
static int reg_printfW(const WCHAR *msg, ...)
......@@ -27,7 +28,7 @@ static int reg_printfW(const WCHAR *msg, ...)
WCHAR msg_buffer[8192];
va_start(va_args, msg);
wvsprintfW(msg_buffer, msg, va_args);
vsprintfW(msg_buffer, msg, va_args);
va_end(va_args);
wlen = lstrlenW(msg_buffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment