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
55423d8d
Commit
55423d8d
authored
Oct 07, 2009
by
Ge van Geldorp
Committed by
Alexandre Julliard
Oct 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Check last error before calling lstrcmpA() since it may reset GLE.
parent
21df49c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
codepage.c
dlls/kernel32/tests/codepage.c
+3
-1
No files found.
dlls/kernel32/tests/codepage.c
View file @
55423d8d
...
...
@@ -131,8 +131,10 @@ static void test_negative_source_length(void)
SetLastError
(
0xdeadbeef
);
memset
(
buf
,
'x'
,
sizeof
(
buf
));
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
foobarW
,
-
2002
,
buf
,
10
,
NULL
,
NULL
);
ok
(
len
==
7
&&
!
lstrcmpA
(
buf
,
"foobar"
)
&&
GetLastError
()
==
0xdeadbeef
,
ok
(
len
==
7
&&
GetLastError
()
==
0xdeadbeef
,
"WideCharToMultiByte(-2002): len=%d error=%u
\n
"
,
len
,
GetLastError
());
ok
(
!
lstrcmpA
(
buf
,
"foobar"
),
"WideCharToMultiByte(-2002): expected
\"
foobar
\"
got
\"
%s
\"\n
"
,
buf
);
SetLastError
(
0xdeadbeef
);
memset
(
bufW
,
'x'
,
sizeof
(
bufW
));
...
...
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