From 13b0dc5fde93fb99313b79ff6f21716e73bbf38c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 29 May 2002 19:25:50 +0000 Subject: [PATCH] Replaced swprintf by wsprintfW. --- dlls/comcat/Makefile.in | 2 +- dlls/comcat/comcat.h | 1 - dlls/comcat/information.c | 3 ++- dlls/comctl32/ipaddress.c | 5 ++--- dlls/comctl32/updown.c | 3 +-- include/ntddk.h | 2 -- 6 files changed, 6 insertions(+), 10 deletions(-) diff --git a/dlls/comcat/Makefile.in b/dlls/comcat/Makefile.in index e61f10e1496..511771dadec 100644 --- a/dlls/comcat/Makefile.in +++ b/dlls/comcat/Makefile.in @@ -3,7 +3,7 @@ TOPOBJDIR = ../.. SRCDIR = @srcdir@ VPATH = @srcdir@ MODULE = comcat.dll -IMPORTS = ole32 advapi32 kernel32 +IMPORTS = ole32 user32 advapi32 kernel32 EXTRALIBS = $(LIBUUID) LDDLLFLAGS = @LDDLLFLAGS@ diff --git a/dlls/comcat/comcat.h b/dlls/comcat/comcat.h index d4aeb8ee614..c9c56cce6d6 100644 --- a/dlls/comcat/comcat.h +++ b/dlls/comcat/comcat.h @@ -22,7 +22,6 @@ #include "winbase.h" #include "winreg.h" #include "winerror.h" -#include "ntddk.h" #include "ole2.h" #include "wine/obj_base.h" diff --git a/dlls/comcat/information.c b/dlls/comcat/information.c index 71914616ddd..a49fe178af3 100644 --- a/dlls/comcat/information.c +++ b/dlls/comcat/information.c @@ -21,6 +21,7 @@ #include #include "comcat.h" +#include "winuser.h" #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(ole); @@ -389,7 +390,7 @@ static HRESULT COMCAT_GetCategoryDesc(HKEY key, LCID lcid, PWCHAR pszDesc, if (pszDesc == NULL) return E_INVALIDARG; /* FIXME: lcid comparisons are more complex than this! */ - swprintf(valname, fmt, lcid); + wsprintfW(valname, fmt, lcid); res = RegQueryValueExW(key, valname, 0, &type, (LPBYTE)pszDesc, &size); if (res != ERROR_SUCCESS || type != REG_SZ) return CAT_E_NODESCRIPTION; pszDesc[size / sizeof(WCHAR)] = (WCHAR)0; diff --git a/dlls/comctl32/ipaddress.c b/dlls/comctl32/ipaddress.c index 84906999df4..fd97f289e30 100644 --- a/dlls/comctl32/ipaddress.c +++ b/dlls/comctl32/ipaddress.c @@ -28,7 +28,6 @@ #include #include -#include "ntddk.h" #include "winbase.h" #include "commctrl.h" #include "wine/unicode.h" @@ -284,7 +283,7 @@ static LRESULT IPADDRESS_SetAddress (IPADDRESS_INFO *infoPtr, DWORD ip_address) IPPART_INFO* part = &infoPtr->Part[i]; int value = ip_address & 0xff; if ( (value >= part->LowerLimit) && (value <= part->UpperLimit) ) { - swprintf (buf, fmt, value); + wsprintfW (buf, fmt, value); SetWindowTextW (part->EditHwnd, buf); IPADDRESS_Notify (infoPtr, EN_CHANGE); } @@ -332,7 +331,7 @@ static BOOL IPADDRESS_ConstrainField (IPADDRESS_INFO *infoPtr, int currentfield) if (newValue == curValue) return FALSE; - swprintf (field, fmt, newValue); + wsprintfW (field, fmt, newValue); TRACE(" field='%s'\n", debugstr_w(field)); return SetWindowTextW (part->EditHwnd, field); } diff --git a/dlls/comctl32/updown.c b/dlls/comctl32/updown.c index 1e734faabd0..77f37ba36de 100644 --- a/dlls/comctl32/updown.c +++ b/dlls/comctl32/updown.c @@ -29,7 +29,6 @@ #include "winuser.h" #include "commctrl.h" #include "winnls.h" -#include "ntddk.h" #include "wine/unicode.h" #include "wine/debug.h" @@ -310,7 +309,7 @@ static BOOL UPDOWN_SetBuddyInt (UPDOWN_INFO *infoPtr) /* Regular window, so set caption to the number */ if (infoPtr->Base == 16) fmt[1] = 'X'; - len = swprintf(txt, fmt, infoPtr->CurVal); + len = wsprintfW(txt, fmt, infoPtr->CurVal); /* Do thousands seperation if necessary */ diff --git a/include/ntddk.h b/include/ntddk.h index 54879b76ec2..42a354c2942 100644 --- a/include/ntddk.h +++ b/include/ntddk.h @@ -759,8 +759,6 @@ DWORD WINAPI RtlIsTextUnicode( DWORD len, DWORD *pf); -int __cdecl swprintf(LPWSTR,LPCWSTR,...); - /* resource functions */ typedef struct _RTL_RWLOCK {