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
7b4658c1
Commit
7b4658c1
authored
Jan 26, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledlg/test: Get rid of strstrW().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0053ab28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
main.c
dlls/oledlg/tests/main.c
+1
-13
No files found.
dlls/oledlg/tests/main.c
View file @
7b4658c1
...
...
@@ -26,18 +26,6 @@
#include "initguid.h"
#include "oledlg.h"
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
HRESULT
WINAPI
enumverbs_QueryInterface
(
IEnumOLEVERB
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
if
(
IsEqualIID
(
riid
,
&
IID_IEnumOLEVERB
)
||
IsEqualIID
(
riid
,
&
IID_IUnknown
))
{
...
...
@@ -411,7 +399,7 @@ static void test_OleUIAddVerbMenu(void)
ok
(
ret
,
"got %d
\n
"
,
ret
);
/* Item string contains verb, usertype and localized string for 'Object' word,
exact format depends on localization. */
ok
(
strstrW
(
buffW
,
verbW
)
!=
NULL
,
"str %s
\n
"
,
wine_dbgstr_w
(
buffW
));
ok
(
wcsstr
(
buffW
,
verbW
)
!=
NULL
,
"str %s
\n
"
,
wine_dbgstr_w
(
buffW
));
ok
(
info
.
fState
==
0
,
"got state 0x%08x
\n
"
,
info
.
fState
);
ok
(
info
.
hSubMenu
==
NULL
,
"got submenu %p
\n
"
,
info
.
hSubMenu
);
...
...
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