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
65f5a834
Commit
65f5a834
authored
Feb 06, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Get rid of strcmp_wa().
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
45da77a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
ordinal.c
dlls/shlwapi/tests/ordinal.c
+2
-9
No files found.
dlls/shlwapi/tests/ordinal.c
View file @
65f5a834
...
@@ -95,13 +95,6 @@ static const CHAR ie_international[] = {
...
@@ -95,13 +95,6 @@ static const CHAR ie_international[] = {
static
const
CHAR
acceptlanguage
[]
=
{
static
const
CHAR
acceptlanguage
[]
=
{
'A'
,
'c'
,
'c'
,
'e'
,
'p'
,
't'
,
'L'
,
'a'
,
'n'
,
'g'
,
'u'
,
'a'
,
'g'
,
'e'
,
0
};
'A'
,
'c'
,
'c'
,
'e'
,
'p'
,
't'
,
'L'
,
'a'
,
'n'
,
'g'
,
'u'
,
'a'
,
'g'
,
'e'
,
0
};
static
int
strcmp_wa
(
LPCWSTR
strw
,
const
char
*
stra
)
{
CHAR
buf
[
512
];
WideCharToMultiByte
(
CP_ACP
,
0
,
strw
,
-
1
,
buf
,
sizeof
(
buf
),
NULL
,
NULL
);
return
lstrcmpA
(
stra
,
buf
);
}
typedef
struct
{
typedef
struct
{
int
id
;
int
id
;
const
void
*
args
[
5
];
const
void
*
args
[
5
];
...
@@ -2740,11 +2733,11 @@ static void test_SHGetIniString(void)
...
@@ -2740,11 +2733,11 @@ static void test_SHGetIniString(void)
ret
=
pSHGetIniStringW
(
TestAppW
,
AKeyW
,
out
,
ARRAY_SIZE
(
out
),
pathW
);
ret
=
pSHGetIniStringW
(
TestAppW
,
AKeyW
,
out
,
ARRAY_SIZE
(
out
),
pathW
);
ok
(
ret
==
1
,
"SHGetIniStringW should have given 1, instead: %d
\n
"
,
ret
);
ok
(
ret
==
1
,
"SHGetIniStringW should have given 1, instead: %d
\n
"
,
ret
);
ok
(
!
strcmp_wa
(
out
,
"1"
),
"Expected L
\"
1
\"
, got: %s
\n
"
,
wine_dbgstr_w
(
out
));
ok
(
!
lstrcmpW
(
out
,
L
"1"
),
"Expected L
\"
1
\"
, got: %s
\n
"
,
wine_dbgstr_w
(
out
));
ret
=
pSHGetIniStringW
(
TestAppW
,
AnotherKeyW
,
out
,
ARRAY_SIZE
(
out
),
pathW
);
ret
=
pSHGetIniStringW
(
TestAppW
,
AnotherKeyW
,
out
,
ARRAY_SIZE
(
out
),
pathW
);
ok
(
ret
==
4
,
"SHGetIniStringW should have given 4, instead: %d
\n
"
,
ret
);
ok
(
ret
==
4
,
"SHGetIniStringW should have given 4, instead: %d
\n
"
,
ret
);
ok
(
!
strcmp_wa
(
out
,
"asdf"
),
"Expected L
\"
asdf
\"
, got: %s
\n
"
,
wine_dbgstr_w
(
out
));
ok
(
!
lstrcmpW
(
out
,
L
"asdf"
),
"Expected L
\"
asdf
\"
, got: %s
\n
"
,
wine_dbgstr_w
(
out
));
out
[
0
]
=
1
;
out
[
0
]
=
1
;
ret
=
pSHGetIniStringW
(
TestAppW
,
JunkKeyW
,
out
,
ARRAY_SIZE
(
out
),
pathW
);
ret
=
pSHGetIniStringW
(
TestAppW
,
JunkKeyW
,
out
,
ARRAY_SIZE
(
out
),
pathW
);
...
...
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