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
b9f85a77
Commit
b9f85a77
authored
Feb 17, 1999
by
Francis Beaudet
Committed by
Alexandre Julliard
Feb 17, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed WPRINTF_ExtractVAPtr to take the address of the va_list to be
able to modify it.
parent
806e0ed3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
wsprintf.c
misc/wsprintf.c
+7
-7
No files found.
misc/wsprintf.c
View file @
b9f85a77
...
...
@@ -242,22 +242,22 @@ static UINT32 WPRINTF_GetLen( WPRINTF_FORMAT *format, LPCVOID arg,
/***********************************************************************
* WPRINTF_ExtractVAPtr (Not a Windows API)
*/
static
LPVOID
WPRINTF_ExtractVAPtr
(
WPRINTF_FORMAT
*
format
,
va_list
args
)
static
LPVOID
WPRINTF_ExtractVAPtr
(
WPRINTF_FORMAT
*
format
,
va_list
*
args
)
{
switch
(
format
->
type
)
{
case
WPR_WCHAR
:
return
(
LPVOID
)
va_arg
(
args
,
WCHAR
);
return
(
LPVOID
)
va_arg
(
*
args
,
WCHAR
);
case
WPR_CHAR
:
return
(
LPVOID
)
va_arg
(
args
,
CHAR
);
return
(
LPVOID
)
va_arg
(
*
args
,
CHAR
);
case
WPR_STRING
:
return
(
LPVOID
)
va_arg
(
args
,
LPCSTR
);
return
(
LPVOID
)
va_arg
(
*
args
,
LPCSTR
);
case
WPR_WSTRING
:
return
(
LPVOID
)
va_arg
(
args
,
LPCWSTR
);
return
(
LPVOID
)
va_arg
(
*
args
,
LPCWSTR
);
case
WPR_HEXA
:
case
WPR_SIGNED
:
case
WPR_UNSIGNED
:
return
(
LPVOID
)
va_arg
(
args
,
INT32
);
return
(
LPVOID
)
va_arg
(
*
args
,
INT32
);
default:
return
NULL
;
}
...
...
@@ -375,7 +375,7 @@ INT32 WINAPI wvsnprintf32A( LPSTR buffer, UINT32 maxlen, LPCSTR spec,
spec
++
;
if
(
*
spec
==
'%'
)
{
*
p
++
=
*
spec
++
;
maxlen
--
;
continue
;
}
spec
+=
WPRINTF_ParseFormatA
(
spec
,
&
format
);
argPtr
=
WPRINTF_ExtractVAPtr
(
&
format
,
args
);
argPtr
=
WPRINTF_ExtractVAPtr
(
&
format
,
&
args
);
len
=
WPRINTF_GetLen
(
&
format
,
&
argPtr
,
number
,
maxlen
-
1
);
if
(
!
(
format
.
flags
&
WPRINTF_LEFTALIGN
))
for
(
i
=
format
.
precision
;
i
<
format
.
width
;
i
++
,
maxlen
--
)
...
...
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