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
5b7dc90e
Commit
5b7dc90e
authored
Feb 07, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Get rid of strcmp_wa().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5066a678
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
shlfolder.c
dlls/shell32/tests/shlfolder.c
+6
-10
No files found.
dlls/shell32/tests/shlfolder.c
View file @
5b7dc90e
...
...
@@ -83,13 +83,6 @@ static WCHAR *make_wstr(const char *str)
return
ret
;
}
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
);
}
static
void
init_function_pointers
(
void
)
{
HMODULE
hmod
;
...
...
@@ -4503,10 +4496,13 @@ static void r_verify_pidl(unsigned l, LPCITEMIDLIST pidl, const WCHAR *path)
"didn't get expected path (%s), instead: %s
\n
"
,
wine_dbgstr_w
(
path
),
wine_dbgstr_w
(
U
(
filename
).
pOleStr
));
SHFree
(
U
(
filename
).
pOleStr
);
}
else
if
(
filename
.
uType
==
STRRET_CSTR
){
ok_
(
__FILE__
,
l
)(
strcmp_wa
(
path
,
U
(
filename
).
cStr
)
==
0
,
"didn't get expected path (%s), instead: %s
\n
"
,
}
else
if
(
filename
.
uType
==
STRRET_CSTR
)
{
WCHAR
*
strW
=
make_wstr
(
U
(
filename
).
cStr
);
ok_
(
__FILE__
,
l
)(
!
lstrcmpW
(
path
,
strW
),
"didn't get expected path (%s), instead: %s
\n
"
,
wine_dbgstr_w
(
path
),
U
(
filename
).
cStr
);
heap_free
(
strW
);
}
IShellFolder_Release
(
parent
);
...
...
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