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
b1d5649b
Commit
b1d5649b
authored
Oct 22, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Use the standard va_list instead of __ms_va_list.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4233b5d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
debugger.c
dlls/kernel32/tests/debugger.c
+3
-3
format_msg.c
dlls/kernel32/tests/format_msg.c
+10
-10
process.c
dlls/kernel32/tests/process.c
+3
-3
No files found.
dlls/kernel32/tests/debugger.c
View file @
b1d5649b
...
...
@@ -60,11 +60,11 @@ static HMODULE ntdll;
static
void
WINAPIV
__WINE_PRINTF_ATTR
(
2
,
3
)
test_child_ok
(
int
condition
,
const
char
*
msg
,
...)
{
__ms_
va_list
valist
;
va_list
valist
;
__ms_
va_start
(
valist
,
msg
);
va_start
(
valist
,
msg
);
winetest_vok
(
condition
,
msg
,
valist
);
__ms_
va_end
(
valist
);
va_end
(
valist
);
if
(
!
condition
)
++
child_failures
;
}
...
...
dlls/kernel32/tests/format_msg.c
View file @
b1d5649b
...
...
@@ -29,26 +29,26 @@
static
DWORD
WINAPIV
doit
(
DWORD
flags
,
LPCVOID
src
,
DWORD
msg_id
,
DWORD
lang_id
,
LPSTR
out
,
DWORD
outsize
,
...
)
{
__ms_
va_list
list
;
va_list
list
;
DWORD
r
;
__ms_
va_start
(
list
,
outsize
);
va_start
(
list
,
outsize
);
r
=
FormatMessageA
(
flags
,
src
,
msg_id
,
lang_id
,
out
,
outsize
,
&
list
);
__ms_
va_end
(
list
);
va_end
(
list
);
return
r
;
}
static
DWORD
WINAPIV
doitW
(
DWORD
flags
,
LPCVOID
src
,
DWORD
msg_id
,
DWORD
lang_id
,
LPWSTR
out
,
DWORD
outsize
,
...
)
{
__ms_
va_list
list
;
va_list
list
;
DWORD
r
;
__ms_
va_start
(
list
,
outsize
);
va_start
(
list
,
outsize
);
r
=
FormatMessageW
(
flags
,
src
,
msg_id
,
lang_id
,
out
,
outsize
,
&
list
);
__ms_
va_end
(
list
);
va_end
(
list
);
return
r
;
}
...
...
@@ -297,11 +297,11 @@ static void test_message_from_string_wide(void)
{
ULONG_PTR
args
[]
=
{
6
,
4
,
2
,
5
,
3
,
1
};
r
=
FormatMessageW
(
FORMAT_MESSAGE_FROM_STRING
|
FORMAT_MESSAGE_ARGUMENT_ARRAY
,
L"%1!*.*u!,%1!*.*u!"
,
0
,
0
,
out
,
ARRAY_SIZE
(
out
),
(
__ms_
va_list
*
)
args
);
0
,
0
,
out
,
ARRAY_SIZE
(
out
),
(
va_list
*
)
args
);
ok
(
!
lstrcmpW
(
L" 0002, 00003"
,
out
),
"failed out=[%s]
\n
"
,
wine_dbgstr_w
(
out
));
ok
(
r
==
13
,
"failed: r=%d
\n
"
,
r
);
r
=
FormatMessageW
(
FORMAT_MESSAGE_FROM_STRING
|
FORMAT_MESSAGE_ARGUMENT_ARRAY
,
L"%1!*.*u!,%4!*.*u!"
,
0
,
0
,
out
,
ARRAY_SIZE
(
out
),
(
__ms_
va_list
*
)
args
);
0
,
0
,
out
,
ARRAY_SIZE
(
out
),
(
va_list
*
)
args
);
ok
(
!
lstrcmpW
(
L" 0002, 001"
,
out
),
"failed out=[%s]
\n
"
,
wine_dbgstr_w
(
out
));
ok
(
r
==
12
,
"failed: r=%d
\n
"
,
r
);
}
...
...
@@ -593,11 +593,11 @@ static void test_message_from_string(void)
{
ULONG_PTR
args
[]
=
{
6
,
4
,
2
,
5
,
3
,
1
};
r
=
FormatMessageA
(
FORMAT_MESSAGE_FROM_STRING
|
FORMAT_MESSAGE_ARGUMENT_ARRAY
,
"%1!*.*u!,%1!*.*u!"
,
0
,
0
,
out
,
sizeof
(
out
),
(
__ms_
va_list
*
)
args
);
"%1!*.*u!,%1!*.*u!"
,
0
,
0
,
out
,
sizeof
(
out
),
(
va_list
*
)
args
);
ok
(
!
strcmp
(
" 0002, 00003"
,
out
),
"failed out=[%s]
\n
"
,
out
);
ok
(
r
==
13
,
"failed: r=%d
\n
"
,
r
);
r
=
FormatMessageA
(
FORMAT_MESSAGE_FROM_STRING
|
FORMAT_MESSAGE_ARGUMENT_ARRAY
,
"%1!*.*u!,%4!*.*u!"
,
0
,
0
,
out
,
sizeof
(
out
),
(
__ms_
va_list
*
)
args
);
"%1!*.*u!,%4!*.*u!"
,
0
,
0
,
out
,
sizeof
(
out
),
(
va_list
*
)
args
);
ok
(
!
strcmp
(
" 0002, 001"
,
out
),
"failed out=[%s]
\n
"
,
out
);
ok
(
r
==
12
,
"failed: r=%d
\n
"
,
r
);
}
...
...
dlls/kernel32/tests/process.c
View file @
b1d5649b
...
...
@@ -307,13 +307,13 @@ static void get_file_name(char* buf)
*/
static
void
WINAPIV
__WINE_PRINTF_ATTR
(
2
,
3
)
childPrintf
(
HANDLE
h
,
const
char
*
fmt
,
...)
{
__ms_
va_list
valist
;
va_list
valist
;
char
buffer
[
1024
+
4
*
MAX_LISTED_ENV_VAR
];
DWORD
w
;
__ms_
va_start
(
valist
,
fmt
);
va_start
(
valist
,
fmt
);
vsprintf
(
buffer
,
fmt
,
valist
);
__ms_
va_end
(
valist
);
va_end
(
valist
);
WriteFile
(
h
,
buffer
,
strlen
(
buffer
),
&
w
,
NULL
);
}
...
...
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