Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
df6fa302
Commit
df6fa302
authored
Jun 04, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Duplicated wsprintf implementation in shlwapi.
parent
a5589d56
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
47 deletions
+12
-47
Makefile.in
dlls/shlwapi/Makefile.in
+2
-1
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+2
-2
string.c
dlls/shlwapi/string.c
+0
-28
wsprintf.c
dlls/shlwapi/wsprintf.c
+0
-0
user32.spec
dlls/user/user32.spec
+0
-6
wsprintf.c
dlls/user/wsprintf.c
+8
-4
winuser.h
include/winuser.h
+0
-6
No files found.
dlls/shlwapi/Makefile.in
View file @
df6fa302
...
...
@@ -17,7 +17,8 @@ C_SRCS = \
regstream.c
\
shlwapi_main.c
\
string.c
\
url.c
url.c
\
wsprintf.c
EXTRASUBDIRS
=
tests
...
...
dlls/shlwapi/shlwapi.spec
View file @
df6fa302
...
...
@@ -680,8 +680,8 @@ init SHLWAPI_LibMain
@ stdcall UrlUnescapeW(wstr ptr ptr long) UrlUnescapeW
@ varargs wnsprintfA(ptr long str) wnsprintfA
@ varargs wnsprintfW(ptr long wstr) wnsprintfW
@
forward wvnsprintfA user32.wvsn
printfA
@
forward wvnsprintfW user32.wvsn
printfW
@
stdcall wvnsprintfA(ptr long str ptr) wvns
printfA
@
stdcall wvnsprintfW(ptr long wstr ptr) wvns
printfW
# exported in later versions
...
...
dlls/shlwapi/string.c
View file @
df6fa302
...
...
@@ -634,31 +634,3 @@ BOOL WINAPI StrTrimA(LPSTR pszSource, LPCSTR pszTrimChars)
TRACE
(
"<- '%s'
\n
"
,
pszSource
);
return
trimmed
;
}
/*************************************************************************
* wnsprintfA [SHLWAPI.@]
*/
int
WINAPIV
wnsprintfA
(
LPSTR
lpOut
,
int
cchLimitIn
,
LPCSTR
lpFmt
,
...)
{
va_list
valist
;
INT
res
;
va_start
(
valist
,
lpFmt
);
res
=
wvsnprintfA
(
lpOut
,
cchLimitIn
,
lpFmt
,
valist
);
va_end
(
valist
);
return
res
;
}
/*************************************************************************
* wnsprintfW [SHLWAPI.@]
*/
int
WINAPIV
wnsprintfW
(
LPWSTR
lpOut
,
int
cchLimitIn
,
LPCWSTR
lpFmt
,
...)
{
va_list
valist
;
INT
res
;
va_start
(
valist
,
lpFmt
);
res
=
wvsnprintfW
(
lpOut
,
cchLimitIn
,
lpFmt
,
valist
);
va_end
(
valist
);
return
res
;
}
dlls/shlwapi/wsprintf.c
0 → 100644
View file @
df6fa302
This diff is collapsed.
Click to expand it.
dlls/user/user32.spec
View file @
df6fa302
...
...
@@ -671,9 +671,3 @@ init UserClientDllInitialize
@ stdcall SendDriverMessage16(long long long long) SendDriverMessage16
@ stdcall SetWindowsHookEx16(long long long long) SetWindowsHookEx16
@ stdcall UserYield16() UserYield16
################################################################
# Wine extensions: extra useful functions not exported under Windows
#
@ stdcall wvsnprintfA(ptr long str ptr) wvsnprintfA
@ stdcall wvsnprintfW(ptr long wstr ptr) wvsnprintfW
dlls/user/wsprintf.c
View file @
df6fa302
...
...
@@ -16,6 +16,10 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* NOTE:
* This code is duplicated in shlwapi. If you change something here make sure
* to change it in shlwapi too.
*/
#include <stdarg.h>
...
...
@@ -373,9 +377,9 @@ static INT16 wvsnprintf16( LPSTR buffer, UINT16 maxlen, LPCSTR spec,
/***********************************************************************
* wvsnprintfA (
USER32.@) (Not a Windows API, but we export it from USER32 anyway
)
* wvsnprintfA (
internal
)
*/
INT
WINAPI
wvsnprintfA
(
LPSTR
buffer
,
UINT
maxlen
,
LPCSTR
spec
,
va_list
args
)
static
INT
wvsnprintfA
(
LPSTR
buffer
,
UINT
maxlen
,
LPCSTR
spec
,
va_list
args
)
{
WPRINTF_FORMAT
format
;
LPSTR
p
=
buffer
;
...
...
@@ -476,9 +480,9 @@ INT WINAPI wvsnprintfA( LPSTR buffer, UINT maxlen, LPCSTR spec, va_list args )
/***********************************************************************
* wvsnprintfW (
USER32.@) (Not a Windows API, but we export it from USER32 anyway
)
* wvsnprintfW (
internal
)
*/
INT
WINAPI
wvsnprintfW
(
LPWSTR
buffer
,
UINT
maxlen
,
LPCWSTR
spec
,
va_list
args
)
static
INT
wvsnprintfW
(
LPWSTR
buffer
,
UINT
maxlen
,
LPCWSTR
spec
,
va_list
args
)
{
WPRINTF_FORMAT
format
;
LPWSTR
p
=
buffer
;
...
...
include/winuser.h
View file @
df6fa302
...
...
@@ -4241,12 +4241,6 @@ WORD WINAPI SYSTEM_KillSystemTimer( WORD );
HRESULT
WINAPI
PrivateExtractIconsA
(
LPCSTR
,
INT
,
DWORD
,
DWORD
,
HICON
*
,
DWORD
,
UINT
,
DWORD
);
HRESULT
WINAPI
PrivateExtractIconsW
(
LPCWSTR
,
INT
,
DWORD
,
DWORD
,
HICON
*
,
DWORD
,
UINT
,
DWORD
);
/* Extra functions that don't exist in the Windows API */
INT
WINAPI
wvsnprintfA
(
LPSTR
,
UINT
,
LPCSTR
,
va_list
);
INT
WINAPI
wvsnprintfW
(
LPWSTR
,
UINT
,
LPCWSTR
,
va_list
);
#define wvsnprintf WINELIB_NAME_AW(wvsnprintf)
#ifdef __cplusplus
}
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment