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

This commit is contained in:
Francois Gouget 2008-11-20 20:49:30 +01:00 committed by Alexandre Julliard
parent b700a1b11a
commit 3bb449468d
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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);