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
0f15851e
Commit
0f15851e
authored
Jan 26, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Get rid of strstrW().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
32169fb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+2
-14
No files found.
dlls/mshtml/tests/htmldoc.c
View file @
0f15851e
...
...
@@ -297,18 +297,6 @@ static BOOL wstr_contains(const WCHAR *strw, const char *stra)
return
strstr
(
buf
,
stra
)
!=
NULL
;
}
static
const
WCHAR
*
strstrW
(
const
WCHAR
*
str
,
const
WCHAR
*
sub
)
{
while
(
*
str
)
{
const
WCHAR
*
p1
=
str
,
*
p2
=
sub
;
while
(
*
p1
&&
*
p2
&&
*
p1
==
*
p2
)
{
p1
++
;
p2
++
;
}
if
(
!*
p2
)
return
str
;
str
++
;
}
return
NULL
;
}
static
BSTR
a2bstr
(
const
char
*
str
)
{
BSTR
ret
;
...
...
@@ -7853,7 +7841,7 @@ static void test_cookies(IHTMLDocument2 *doc)
ok
(
b
,
"InternetGetCookieW failed: %08x
\n
"
,
GetLastError
());
ok
(
!
lstrcmpW
(
buf
,
str2
),
"cookie = %s, expected %s
\n
"
,
wine_dbgstr_w
(
str2
),
wine_dbgstr_w
(
buf
));
if
(
str2
)
ok
(
strstrW
(
str2
,
str
)
!=
NULL
,
"could not find %s in %s
\n
"
,
wine_dbgstr_w
(
str
),
wine_dbgstr_w
(
str2
));
ok
(
wcsstr
(
str2
,
str
)
!=
NULL
,
"could not find %s in %s
\n
"
,
wine_dbgstr_w
(
str
),
wine_dbgstr_w
(
str2
));
SysFreeString
(
str
);
SysFreeString
(
str2
);
...
...
@@ -7870,7 +7858,7 @@ static void test_cookies(IHTMLDocument2 *doc)
ok
(
b
,
"InternetGetCookieW failed: %08x
\n
"
,
GetLastError
());
ok
(
!
lstrcmpW
(
buf
,
str2
),
"cookie = %s, expected %s
\n
"
,
wine_dbgstr_w
(
str2
),
wine_dbgstr_w
(
buf
));
if
(
str2
)
ok
(
strstrW
(
str2
,
str
)
!=
NULL
,
"could not find %s in %s
\n
"
,
wine_dbgstr_w
(
str
),
wine_dbgstr_w
(
str2
));
ok
(
wcsstr
(
str2
,
str
)
!=
NULL
,
"could not find %s in %s
\n
"
,
wine_dbgstr_w
(
str
),
wine_dbgstr_w
(
str2
));
SysFreeString
(
str
);
SysFreeString
(
str2
);
}
...
...
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