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
b9f0ee96
Commit
b9f0ee96
authored
Dec 31, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Convert wvnsprintfA/W to use an MS ABI vararg list for x86_64.
parent
fb7acdcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
wsprintf.c
dlls/shlwapi/wsprintf.c
+8
-8
shlwapi.h
include/shlwapi.h
+2
-2
No files found.
dlls/shlwapi/wsprintf.c
View file @
b9f0ee96
...
...
@@ -284,7 +284,7 @@ static UINT WPRINTF_GetLen( WPRINTF_FORMAT *format, WPRINTF_DATA *arg,
* Success: The number of characters written.
* Failure: -1.
*/
INT
WINAPI
wvnsprintfA
(
LPSTR
buffer
,
INT
maxlen
,
LPCSTR
spec
,
va_list
args
)
INT
WINAPI
wvnsprintfA
(
LPSTR
buffer
,
INT
maxlen
,
LPCSTR
spec
,
__ms_
va_list
args
)
{
WPRINTF_FORMAT
format
;
LPSTR
p
=
buffer
;
...
...
@@ -389,7 +389,7 @@ INT WINAPI wvnsprintfA( LPSTR buffer, INT maxlen, LPCSTR spec, va_list args )
*
* See wvnsprintfA.
*/
INT
WINAPI
wvnsprintfW
(
LPWSTR
buffer
,
INT
maxlen
,
LPCWSTR
spec
,
va_list
args
)
INT
WINAPI
wvnsprintfW
(
LPWSTR
buffer
,
INT
maxlen
,
LPCWSTR
spec
,
__ms_
va_list
args
)
{
WPRINTF_FORMAT
format
;
LPWSTR
p
=
buffer
;
...
...
@@ -504,12 +504,12 @@ INT WINAPI wvnsprintfW( LPWSTR buffer, INT maxlen, LPCWSTR spec, va_list args )
*/
int
WINAPIV
wnsprintfA
(
LPSTR
lpOut
,
int
cchLimitIn
,
LPCSTR
lpFmt
,
...)
{
va_list
valist
;
__ms_
va_list
valist
;
INT
res
;
va_start
(
valist
,
lpFmt
);
__ms_
va_start
(
valist
,
lpFmt
);
res
=
wvnsprintfA
(
lpOut
,
cchLimitIn
,
lpFmt
,
valist
);
va_end
(
valist
);
__ms_
va_end
(
valist
);
return
res
;
}
...
...
@@ -521,11 +521,11 @@ int WINAPIV wnsprintfA(LPSTR lpOut, int cchLimitIn, LPCSTR lpFmt, ...)
*/
int
WINAPIV
wnsprintfW
(
LPWSTR
lpOut
,
int
cchLimitIn
,
LPCWSTR
lpFmt
,
...)
{
va_list
valist
;
__ms_
va_list
valist
;
INT
res
;
va_start
(
valist
,
lpFmt
);
__ms_
va_start
(
valist
,
lpFmt
);
res
=
wvnsprintfW
(
lpOut
,
cchLimitIn
,
lpFmt
,
valist
);
va_end
(
valist
);
__ms_
va_end
(
valist
);
return
res
;
}
include/shlwapi.h
View file @
b9f0ee96
...
...
@@ -859,8 +859,8 @@ BOOL WINAPI StrTrimA(LPSTR,LPCSTR);
BOOL
WINAPI
StrTrimW
(
LPWSTR
,
LPCWSTR
);
#define StrTrim WINELIB_NAME_AW(StrTrim)
INT
WINAPI
wvnsprintfA
(
LPSTR
,
INT
,
LPCSTR
,
va_list
);
INT
WINAPI
wvnsprintfW
(
LPWSTR
,
INT
,
LPCWSTR
,
va_list
);
INT
WINAPI
wvnsprintfA
(
LPSTR
,
INT
,
LPCSTR
,
__ms_
va_list
);
INT
WINAPI
wvnsprintfW
(
LPWSTR
,
INT
,
LPCWSTR
,
__ms_
va_list
);
#define wvnsprintf WINELIB_NAME_AW(wvnsprintf)
INT
WINAPIV
wnsprintfA
(
LPSTR
,
INT
,
LPCSTR
,
...);
...
...
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