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
1e5777ed
Commit
1e5777ed
authored
Sep 20, 2001
by
Aric Stewart
Committed by
Alexandre Julliard
Sep 20, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The behavior for wsprintfA is different that for wsprintf16 in how it
handles NULLs being passed as character parameters.
parent
5ee3879c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
16 deletions
+5
-16
wsprintf.c
dlls/user/wsprintf.c
+5
-16
No files found.
dlls/user/wsprintf.c
View file @
1e5777ed
...
...
@@ -312,6 +312,7 @@ static INT16 wvsnprintf16( LPSTR buffer, UINT16 maxlen, LPCSTR spec,
case
WPR_WCHAR
:
/* No Unicode in Win16 */
case
WPR_CHAR
:
*
p
=
cur_arg
.
char_view
;
/* wsprintf16 (unlike wsprintf) ignores null characters */
if
(
*
p
!=
'\0'
)
p
++
;
else
if
(
format
.
width
>
1
)
*
p
++
=
' '
;
else
len
=
0
;
...
...
@@ -400,16 +401,10 @@ INT WINAPI wvsnprintfA( LPSTR buffer, UINT maxlen, LPCSTR spec, va_list args )
switch
(
format
.
type
)
{
case
WPR_WCHAR
:
*
p
=
argData
.
wchar_view
;
if
(
*
p
!=
'\0'
)
p
++
;
else
if
(
format
.
width
>
1
)
*
p
++
=
' '
;
else
len
=
0
;
*
p
++
=
argData
.
wchar_view
;
break
;
case
WPR_CHAR
:
*
p
=
argData
.
char_view
;
if
(
*
p
!=
'\0'
)
p
++
;
else
if
(
format
.
width
>
1
)
*
p
++
=
' '
;
else
len
=
0
;
*
p
++
=
argData
.
char_view
;
break
;
case
WPR_STRING
:
memcpy
(
p
,
argData
.
lpcstr_view
,
len
);
...
...
@@ -501,16 +496,10 @@ INT WINAPI wvsnprintfW( LPWSTR buffer, UINT maxlen, LPCWSTR spec, va_list args )
switch
(
format
.
type
)
{
case
WPR_WCHAR
:
*
p
=
argData
.
wchar_view
;
if
(
*
p
!=
'\0'
)
p
++
;
else
if
(
format
.
width
>
1
)
*
p
++
=
' '
;
else
len
=
0
;
*
p
++
=
argData
.
wchar_view
;
break
;
case
WPR_CHAR
:
*
p
=
argData
.
char_view
;
if
(
*
p
!=
'\0'
)
p
++
;
else
if
(
format
.
width
>
1
)
*
p
++
=
' '
;
else
len
=
0
;
*
p
++
=
argData
.
char_view
;
break
;
case
WPR_STRING
:
{
...
...
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