Add wvnsprintf[AW]

Peter Hunnisett hunnise at yahoo.com
Mon Jul 9 23:24:17 CDT 2001


Hi,
  the attached patch add shlwapi.wvnsprintf[AW] as forwards to
user32.wvsnprintf[AW] (yes transposed "sn").

  It was made against the last release, but should still apply cleanly.
If it doesn't, let me know and I'll resubmit it later.


Ciao,
Peter Hunnisett
hunnise at yahoo.com
-------------- next part --------------
--- ChangeLog	2001/07/06 20:06:34	1.1
+++ ChangeLog	2001/07/10 03:26:55
@@ -1,3 +1,7 @@
+	* dlls/user/user32.spec, dlls/shlwapi/shlwapi.spec, include/shlwapi.h, dlls/user/wsprintf.c
+	Peter Hunnisett <hunnise at yahoo.com>
+	Add shlwapi.wvnsprintf[AW], header info and comments.
+
 ----------------------------------------------------------------
 2001-06-29  Alexandre Julliard  <julliard at winehq.com>
 
--- include/shlwapi.h	2001/07/10 03:05:08	1.1
+++ include/shlwapi.h	2001/07/10 03:17:34
@@ -199,6 +199,13 @@
 LPWSTR WINAPI StrFormatByteSizeW ( DWORD dw, LPWSTR pszBuf, UINT cchBuf );
 #define StrFormatByteSize WINELIB_NAME_AW(StrFormatByteSize)
 
+INT WINAPI wvnsprintfA(LPSTR lpOut, INT cchLimitIn, LPCSTR lpFmt, va_list arglist);
+INT WINAPI wvnsprintfW(LPWSTR lpOut, INT cchLimitIn, LPCWSTR lpFmt, va_list arglist);
+#define wvnsprintf WINELIB_NAME_AW(wvnsprintf)
+
+INT WINAPIV wnsprintfA(LPSTR lpOut, INT cchLimitIn, LPCSTR lpFmt, ...);
+INT WINAPIV wnsprintfW(LPWSTR lpOut, INT cchLimitIn, LPCWSTR lpFmt, ...);
+#define wnsprintf WINELIB_NAME_AW(wnsprintf)
 
 
 struct _STRRET;
--- dlls/shlwapi/shlwapi.spec	2001/07/08 04:25:13	1.2
+++ dlls/shlwapi/shlwapi.spec	2001/07/10 03:07:39
@@ -687,8 +687,10 @@
 @ stub    UrlIsW
 @ stdcall UrlUnescapeA(str ptr ptr long) UrlUnescapeA
 @ stdcall UrlUnescapeW(wstr ptr ptr long) UrlUnescapeW
-@ varargs wnsprintfA(ptr long str)wnsprintfA
-@ varargs wnsprintfW(ptr long wstr)wnsprintfW
+@ varargs wnsprintfA(ptr long str) wnsprintfA
+@ varargs wnsprintfW(ptr long wstr) wnsprintfW
+@ forward wvnsprintfA user32.wvsnprintfA
+@ forward wvnsprintfW user32.wvsnprintfW
 
 
 # exported in later versions
--- dlls/user/user32.spec	2001/07/10 03:07:48	1.1
+++ dlls/user/user32.spec	2001/07/10 03:09:20
@@ -684,5 +684,7 @@
 # Wine extensions: extra useful functions not exported under Windows
 #
 @ stdcall GetSysColorPen(long) GetSysColorPen
+
+# wvsnprintf[AW] are actually wvnsprintf[AW] from shlwapi.dll. We keep them here to avoid code reuse.
 @ stdcall wvsnprintfA(ptr long str ptr) wvsnprintfA
 @ stdcall wvsnprintfW(ptr long wstr ptr) wvsnprintfW
--- dlls/user/wsprintf.c	2001/07/10 03:20:12	1.1
+++ dlls/user/wsprintf.c	2001/07/10 03:21:28
@@ -347,6 +347,7 @@
 
 /***********************************************************************
  *           wvsnprintfA   (USER32.@) (Not a Windows API, but we export it from USER32 anyway)
+ *           wvnsprintfA   (SHLWAPI.@)
  */
 INT WINAPI wvsnprintfA( LPSTR buffer, UINT maxlen, LPCSTR spec, va_list args )
 {
@@ -448,6 +449,7 @@
 
 /***********************************************************************
  *           wvsnprintfW   (USER32.@) (Not a Windows API, but we export it from USER32 anyway)
+ *           wvnsprintfW   (SHLWAPI.@)
  */
 INT WINAPI wvsnprintfW( LPWSTR buffer, UINT maxlen, LPCWSTR spec, va_list args )
 {


More information about the wine-patches mailing list