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
ce487612
Commit
ce487612
authored
Jan 26, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Get rid of strcmpW().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e4e3dc7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
string.c
dlls/shlwapi/tests/string.c
+3
-9
No files found.
dlls/shlwapi/tests/string.c
View file @
ce487612
...
...
@@ -69,12 +69,6 @@ static LPWSTR (WINAPI *pStrChrNW)(LPCWSTR,WCHAR,UINT);
static
BOOL
(
WINAPI
*
pStrToInt64ExA
)(
LPCSTR
,
DWORD
,
LONGLONG
*
);
static
BOOL
(
WINAPI
*
pStrToInt64ExW
)(
LPCWSTR
,
DWORD
,
LONGLONG
*
);
static
int
strcmpW
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
)
{
while
(
*
str1
&&
(
*
str1
==
*
str2
))
{
str1
++
;
str2
++
;
}
return
*
str1
-
*
str2
;
}
/* StrToInt/StrToIntEx results */
typedef
struct
tagStrToIntResult
{
...
...
@@ -830,14 +824,14 @@ static void test_StrRetToBSTR(void)
U
(
strret
).
pOleStr
=
CoDupStrW
(
"Test"
);
bstr
=
0
;
ret
=
pStrRetToBSTR
(
&
strret
,
NULL
,
&
bstr
);
ok
(
ret
==
S_OK
&&
bstr
&&
!
strcmpW
(
bstr
,
szTestW
),
ok
(
ret
==
S_OK
&&
bstr
&&
!
wcscmp
(
bstr
,
szTestW
),
"STRRET_WSTR: dup failed, ret=0x%08x, bstr %p
\n
"
,
ret
,
bstr
);
SysFreeString
(
bstr
);
strret
.
uType
=
STRRET_CSTR
;
lstrcpyA
(
U
(
strret
).
cStr
,
"Test"
);
ret
=
pStrRetToBSTR
(
&
strret
,
NULL
,
&
bstr
);
ok
(
ret
==
S_OK
&&
bstr
&&
!
strcmpW
(
bstr
,
szTestW
),
ok
(
ret
==
S_OK
&&
bstr
&&
!
wcscmp
(
bstr
,
szTestW
),
"STRRET_CSTR: dup failed, ret=0x%08x, bstr %p
\n
"
,
ret
,
bstr
);
SysFreeString
(
bstr
);
...
...
@@ -845,7 +839,7 @@ static void test_StrRetToBSTR(void)
U
(
strret
).
uOffset
=
1
;
strcpy
((
char
*
)
&
iidl
,
" Test"
);
ret
=
pStrRetToBSTR
(
&
strret
,
iidl
,
&
bstr
);
ok
(
ret
==
S_OK
&&
bstr
&&
!
strcmpW
(
bstr
,
szTestW
),
ok
(
ret
==
S_OK
&&
bstr
&&
!
wcscmp
(
bstr
,
szTestW
),
"STRRET_OFFSET: dup failed, ret=0x%08x, bstr %p
\n
"
,
ret
,
bstr
);
SysFreeString
(
bstr
);
...
...
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