Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ab4dba3e
Commit
ab4dba3e
authored
Feb 09, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Don't check return values inside of if(0) (LLVM/Clang).
parent
f900a8b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
format_msg.c
dlls/kernel32/tests/format_msg.c
+5
-7
No files found.
dlls/kernel32/tests/format_msg.c
View file @
ab4dba3e
...
...
@@ -143,7 +143,7 @@ static void test_message_from_string_wide(void)
{
SetLastError
(
0xdeadbeef
);
memcpy
(
out
,
init_buf
,
sizeof
(
init_buf
));
r
=
FormatMessageW
(
FORMAT_MESSAGE_FROM_STRING
,
NULL
,
0
,
FormatMessageW
(
FORMAT_MESSAGE_FROM_STRING
,
NULL
,
0
,
0
,
out
,
sizeof
(
out
)
/
sizeof
(
WCHAR
),
NULL
);
}
...
...
@@ -283,6 +283,7 @@ static void test_message_from_string_wide(void)
r
=
doitW
(
FORMAT_MESSAGE_FROM_STRING
,
fmt_14d
,
0
,
0
,
out
,
sizeof
(
out
)
/
sizeof
(
WCHAR
),
1
);
ok
(
!
lstrcmpW
(
s_14d
,
out
),
"failed out=%s
\n
"
,
wine_dbgstr_w
(
out
));
ok
(
r
==
4
,
"failed: r=%d
\n
"
,
r
);
/* a single digit, left justified */
r
=
doitW
(
FORMAT_MESSAGE_FROM_STRING
,
fmt_1_4d
,
0
,
...
...
@@ -466,7 +467,7 @@ static void test_message_from_string(void)
{
SetLastError
(
0xdeadbeef
);
memcpy
(
out
,
init_buf
,
sizeof
(
init_buf
));
r
=
FormatMessageA
(
FORMAT_MESSAGE_FROM_STRING
,
NULL
,
0
,
FormatMessageA
(
FORMAT_MESSAGE_FROM_STRING
,
NULL
,
0
,
0
,
out
,
sizeof
(
out
)
/
sizeof
(
CHAR
),
NULL
);
}
...
...
@@ -1119,10 +1120,7 @@ static void test_message_null_buffer(void)
if
(
0
)
/* crashes on Windows */
{
SetLastError
(
0xdeadbeef
);
ret
=
FormatMessageA
(
FORMAT_MESSAGE_FROM_SYSTEM
,
NULL
,
0
,
0
,
NULL
,
256
,
NULL
);
error
=
GetLastError
();
ok
(
!
ret
,
"FormatMessageA returned %u
\n
"
,
ret
);
trace
(
"last error %u
\n
"
,
error
);
FormatMessageA
(
FORMAT_MESSAGE_FROM_SYSTEM
,
NULL
,
0
,
0
,
NULL
,
256
,
NULL
);
}
SetLastError
(
0xdeadbeef
);
...
...
@@ -1296,7 +1294,7 @@ static void test_message_allocate_buffer_wide(void)
if
(
0
)
/* crashes on Windows */
{
buf
=
(
WCHAR
*
)
0xdeadbeef
;
ret
=
FormatMessageW
(
FORMAT_MESSAGE_FROM_STRING
|
FORMAT_MESSAGE_ALLOCATE_BUFFER
,
FormatMessageW
(
FORMAT_MESSAGE_FROM_STRING
|
FORMAT_MESSAGE_ALLOCATE_BUFFER
,
NULL
,
0
,
0
,
(
WCHAR
*
)
&
buf
,
0
,
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