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
fb7acdcb
Commit
fb7acdcb
authored
Dec 31, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Convert wvsprintfA/W to use an MS ABI vararg list for x86_64.
parent
aa6f1c73
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
17 deletions
+29
-17
string.c
dlls/kernel32/string.c
+5
-5
wsprintf.c
dlls/user32/wsprintf.c
+10
-10
windef.h
include/windef.h
+12
-0
winuser.h
include/winuser.h
+2
-2
No files found.
dlls/kernel32/string.c
View file @
fb7acdcb
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
static
INT
(
WINAPI
*
pLoadStringA
)(
HINSTANCE
,
UINT
,
LPSTR
,
INT
);
static
INT
(
WINAPI
*
pLoadStringA
)(
HINSTANCE
,
UINT
,
LPSTR
,
INT
);
static
INT
(
WINAPI
*
pwvsprintfA
)(
LPSTR
,
LPCSTR
,
va_list
);
static
INT
(
WINAPI
*
pwvsprintfA
)(
LPSTR
,
LPCSTR
,
__ms_
va_list
);
/***********************************************************************
/***********************************************************************
...
@@ -118,7 +118,7 @@ INT WINAPI k32LoadStringA(HINSTANCE instance, UINT resource_id,
...
@@ -118,7 +118,7 @@ INT WINAPI k32LoadStringA(HINSTANCE instance, UINT resource_id,
/***********************************************************************
/***********************************************************************
* k32wvsprintfA (KERNEL32.16)
* k32wvsprintfA (KERNEL32.16)
*/
*/
INT
WINAPI
k32wvsprintfA
(
LPSTR
buffer
,
LPCSTR
spec
,
va_list
args
)
INT
WINAPI
k32wvsprintfA
(
LPSTR
buffer
,
LPCSTR
spec
,
__ms_
va_list
args
)
{
{
if
(
!
pwvsprintfA
)
pwvsprintfA
=
user32_proc_address
(
"wvsprintfA"
);
if
(
!
pwvsprintfA
)
pwvsprintfA
=
user32_proc_address
(
"wvsprintfA"
);
return
(
*
pwvsprintfA
)(
buffer
,
spec
,
args
);
return
(
*
pwvsprintfA
)(
buffer
,
spec
,
args
);
...
@@ -130,12 +130,12 @@ INT WINAPI k32wvsprintfA(LPSTR buffer, LPCSTR spec, va_list args)
...
@@ -130,12 +130,12 @@ INT WINAPI k32wvsprintfA(LPSTR buffer, LPCSTR spec, va_list args)
*/
*/
INT
WINAPIV
k32wsprintfA
(
LPSTR
buffer
,
LPCSTR
spec
,
...)
INT
WINAPIV
k32wsprintfA
(
LPSTR
buffer
,
LPCSTR
spec
,
...)
{
{
va_list
args
;
__ms_
va_list
args
;
INT
res
;
INT
res
;
va_start
(
args
,
spec
);
__ms_
va_start
(
args
,
spec
);
res
=
k32wvsprintfA
(
buffer
,
spec
,
args
);
res
=
k32wvsprintfA
(
buffer
,
spec
,
args
);
va_end
(
args
);
__ms_
va_end
(
args
);
return
res
;
return
res
;
}
}
...
...
dlls/user32/wsprintf.c
View file @
fb7acdcb
...
@@ -385,7 +385,7 @@ static INT16 wvsnprintf16( LPSTR buffer, UINT16 maxlen, LPCSTR spec, VA_LIST16 a
...
@@ -385,7 +385,7 @@ static INT16 wvsnprintf16( LPSTR buffer, UINT16 maxlen, LPCSTR spec, VA_LIST16 a
/***********************************************************************
/***********************************************************************
* wvsnprintfA (internal)
* wvsnprintfA (internal)
*/
*/
static
INT
wvsnprintfA
(
LPSTR
buffer
,
UINT
maxlen
,
LPCSTR
spec
,
va_list
args
)
static
INT
wvsnprintfA
(
LPSTR
buffer
,
UINT
maxlen
,
LPCSTR
spec
,
__ms_
va_list
args
)
{
{
WPRINTF_FORMAT
format
;
WPRINTF_FORMAT
format
;
LPSTR
p
=
buffer
;
LPSTR
p
=
buffer
;
...
@@ -488,7 +488,7 @@ static INT wvsnprintfA( LPSTR buffer, UINT maxlen, LPCSTR spec, va_list args )
...
@@ -488,7 +488,7 @@ static INT wvsnprintfA( LPSTR buffer, UINT maxlen, LPCSTR spec, va_list args )
/***********************************************************************
/***********************************************************************
* wvsnprintfW (internal)
* wvsnprintfW (internal)
*/
*/
static
INT
wvsnprintfW
(
LPWSTR
buffer
,
UINT
maxlen
,
LPCWSTR
spec
,
va_list
args
)
static
INT
wvsnprintfW
(
LPWSTR
buffer
,
UINT
maxlen
,
LPCWSTR
spec
,
__ms_
va_list
args
)
{
{
WPRINTF_FORMAT
format
;
WPRINTF_FORMAT
format
;
LPWSTR
p
=
buffer
;
LPWSTR
p
=
buffer
;
...
@@ -603,7 +603,7 @@ INT16 WINAPI wvsprintf16( LPSTR buffer, LPCSTR spec, VA_LIST16 args )
...
@@ -603,7 +603,7 @@ INT16 WINAPI wvsprintf16( LPSTR buffer, LPCSTR spec, VA_LIST16 args )
/***********************************************************************
/***********************************************************************
* wvsprintfA (USER32.@)
* wvsprintfA (USER32.@)
*/
*/
INT
WINAPI
wvsprintfA
(
LPSTR
buffer
,
LPCSTR
spec
,
va_list
args
)
INT
WINAPI
wvsprintfA
(
LPSTR
buffer
,
LPCSTR
spec
,
__ms_
va_list
args
)
{
{
INT
res
=
wvsnprintfA
(
buffer
,
1024
,
spec
,
args
);
INT
res
=
wvsnprintfA
(
buffer
,
1024
,
spec
,
args
);
return
(
res
==
-
1
)
?
1024
:
res
;
return
(
res
==
-
1
)
?
1024
:
res
;
...
@@ -613,7 +613,7 @@ INT WINAPI wvsprintfA( LPSTR buffer, LPCSTR spec, va_list args )
...
@@ -613,7 +613,7 @@ INT WINAPI wvsprintfA( LPSTR buffer, LPCSTR spec, va_list args )
/***********************************************************************
/***********************************************************************
* wvsprintfW (USER32.@)
* wvsprintfW (USER32.@)
*/
*/
INT
WINAPI
wvsprintfW
(
LPWSTR
buffer
,
LPCWSTR
spec
,
va_list
args
)
INT
WINAPI
wvsprintfW
(
LPWSTR
buffer
,
LPCWSTR
spec
,
__ms_
va_list
args
)
{
{
INT
res
=
wvsnprintfW
(
buffer
,
1024
,
spec
,
args
);
INT
res
=
wvsnprintfW
(
buffer
,
1024
,
spec
,
args
);
return
(
res
==
-
1
)
?
1024
:
res
;
return
(
res
==
-
1
)
?
1024
:
res
;
...
@@ -637,12 +637,12 @@ INT16 WINAPIV wsprintf16( LPSTR buffer, LPCSTR spec, VA_LIST16 valist )
...
@@ -637,12 +637,12 @@ INT16 WINAPIV wsprintf16( LPSTR buffer, LPCSTR spec, VA_LIST16 valist )
*/
*/
INT
WINAPIV
wsprintfA
(
LPSTR
buffer
,
LPCSTR
spec
,
...
)
INT
WINAPIV
wsprintfA
(
LPSTR
buffer
,
LPCSTR
spec
,
...
)
{
{
va_list
valist
;
__ms_
va_list
valist
;
INT
res
;
INT
res
;
va_start
(
valist
,
spec
);
__ms_
va_start
(
valist
,
spec
);
res
=
wvsnprintfA
(
buffer
,
1024
,
spec
,
valist
);
res
=
wvsnprintfA
(
buffer
,
1024
,
spec
,
valist
);
va_end
(
valist
);
__ms_
va_end
(
valist
);
return
(
res
==
-
1
)
?
1024
:
res
;
return
(
res
==
-
1
)
?
1024
:
res
;
}
}
...
@@ -652,11 +652,11 @@ INT WINAPIV wsprintfA( LPSTR buffer, LPCSTR spec, ... )
...
@@ -652,11 +652,11 @@ INT WINAPIV wsprintfA( LPSTR buffer, LPCSTR spec, ... )
*/
*/
INT
WINAPIV
wsprintfW
(
LPWSTR
buffer
,
LPCWSTR
spec
,
...
)
INT
WINAPIV
wsprintfW
(
LPWSTR
buffer
,
LPCWSTR
spec
,
...
)
{
{
va_list
valist
;
__ms_
va_list
valist
;
INT
res
;
INT
res
;
va_start
(
valist
,
spec
);
__ms_
va_start
(
valist
,
spec
);
res
=
wvsnprintfW
(
buffer
,
1024
,
spec
,
valist
);
res
=
wvsnprintfW
(
buffer
,
1024
,
spec
,
valist
);
va_end
(
valist
);
__ms_
va_end
(
valist
);
return
(
res
==
-
1
)
?
1024
:
res
;
return
(
res
==
-
1
)
?
1024
:
res
;
}
}
include/windef.h
View file @
fb7acdcb
...
@@ -84,6 +84,18 @@ extern "C" {
...
@@ -84,6 +84,18 @@ extern "C" {
# endif
# endif
#endif
/* __cdecl */
#endif
/* __cdecl */
#ifndef __ms_va_list
# if defined(__x86_64__) && defined (__GNUC__)
# define __ms_va_list __builtin_ms_va_list
# define __ms_va_start(list,arg) __builtin_ms_va_start(list,arg)
# define __ms_va_end(list) __builtin_ms_va_end(list)
# else
# define __ms_va_list va_list
# define __ms_va_start(list,arg) va_start(list,arg)
# define __ms_va_end(list) va_end(list)
# endif
#endif
#ifdef __WINESRC__
#ifdef __WINESRC__
#define __ONLY_IN_WINELIB(x) do_not_use_this_in_wine
#define __ONLY_IN_WINELIB(x) do_not_use_this_in_wine
#else
#else
...
...
include/winuser.h
View file @
fb7acdcb
...
@@ -5068,8 +5068,8 @@ WINUSERAPI VOID WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,ULONG_PTR);
...
@@ -5068,8 +5068,8 @@ WINUSERAPI VOID WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,ULONG_PTR);
WINUSERAPI
INT
WINAPIV
wsprintfA
(
LPSTR
,
LPCSTR
,...);
WINUSERAPI
INT
WINAPIV
wsprintfA
(
LPSTR
,
LPCSTR
,...);
WINUSERAPI
INT
WINAPIV
wsprintfW
(
LPWSTR
,
LPCWSTR
,...);
WINUSERAPI
INT
WINAPIV
wsprintfW
(
LPWSTR
,
LPCWSTR
,...);
#define wsprintf WINELIB_NAME_AW(wsprintf)
#define wsprintf WINELIB_NAME_AW(wsprintf)
WINUSERAPI
INT
WINAPI
wvsprintfA
(
LPSTR
,
LPCSTR
,
va_list
);
WINUSERAPI
INT
WINAPI
wvsprintfA
(
LPSTR
,
LPCSTR
,
__ms_
va_list
);
WINUSERAPI
INT
WINAPI
wvsprintfW
(
LPWSTR
,
LPCWSTR
,
va_list
);
WINUSERAPI
INT
WINAPI
wvsprintfW
(
LPWSTR
,
LPCWSTR
,
__ms_
va_list
);
#define wvsprintf WINELIB_NAME_AW(wvsprintf)
#define wvsprintf WINELIB_NAME_AW(wvsprintf)
/* Undocumented functions */
/* Undocumented functions */
...
...
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