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
e4e3dc7e
Commit
e4e3dc7e
authored
Jan 26, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Get rid of strcmpW().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7b4658c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
string.c
dlls/shell32/tests/string.c
+3
-9
No files found.
dlls/shell32/tests/string.c
View file @
e4e3dc7e
...
...
@@ -42,12 +42,6 @@ static WCHAR *CoDupStrW(const char* src)
return
szTemp
;
}
static
inline
int
strcmpW
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
)
{
while
(
*
str1
&&
(
*
str1
==
*
str2
))
{
str1
++
;
str2
++
;
}
return
*
str1
-
*
str2
;
}
static
void
test_StrRetToStringNA
(
void
)
{
trace
(
"StrRetToStringNAW is Ascii
\n
"
);
...
...
@@ -68,14 +62,14 @@ static void test_StrRetToStringNW(void)
U
(
strret
).
pOleStr
=
CoDupStrW
(
"Test"
);
memset
(
buff
,
0xff
,
sizeof
(
buff
));
ret
=
pStrRetToStrNAW
(
buff
,
ARRAY_SIZE
(
buff
),
&
strret
,
NULL
);
ok
(
ret
==
TRUE
&&
!
strcmpW
(
buff
,
szTestW
),
ok
(
ret
==
TRUE
&&
!
wcscmp
(
buff
,
szTestW
),
"STRRET_WSTR: dup failed, ret=%d
\n
"
,
ret
);
strret
.
uType
=
STRRET_CSTR
;
lstrcpyA
(
U
(
strret
).
cStr
,
"Test"
);
memset
(
buff
,
0xff
,
sizeof
(
buff
));
ret
=
pStrRetToStrNAW
(
buff
,
ARRAY_SIZE
(
buff
),
&
strret
,
NULL
);
ok
(
ret
==
TRUE
&&
!
strcmpW
(
buff
,
szTestW
),
ok
(
ret
==
TRUE
&&
!
wcscmp
(
buff
,
szTestW
),
"STRRET_CSTR: dup failed, ret=%d
\n
"
,
ret
);
strret
.
uType
=
STRRET_OFFSET
;
...
...
@@ -83,7 +77,7 @@ static void test_StrRetToStringNW(void)
strcpy
((
char
*
)
&
iidl
,
" Test"
);
memset
(
buff
,
0xff
,
sizeof
(
buff
));
ret
=
pStrRetToStrNAW
(
buff
,
ARRAY_SIZE
(
buff
),
&
strret
,
iidl
);
ok
(
ret
==
TRUE
&&
!
strcmpW
(
buff
,
szTestW
),
ok
(
ret
==
TRUE
&&
!
wcscmp
(
buff
,
szTestW
),
"STRRET_OFFSET: dup failed, ret=%d
\n
"
,
ret
);
/* The next test crashes on W2K, WinXP and W2K3, so we don't test. */
...
...
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