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
88a97cd4
Commit
88a97cd4
authored
Sep 08, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledlg/tests: Handle localized menu strings.
parent
2a761320
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
main.c
dlls/oledlg/tests/main.c
+15
-2
No files found.
dlls/oledlg/tests/main.c
View file @
88a97cd4
...
...
@@ -26,6 +26,18 @@
#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
))
{
...
...
@@ -396,8 +408,9 @@ static void test_OleUIAddVerbMenu(void)
info
.
cch
=
sizeof
(
buffW
)
/
sizeof
(
WCHAR
);
ret
=
GetMenuItemInfoW
(
hMenu
,
4
,
TRUE
,
&
info
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
/* item string has a form of '<verb> <usertype> <Object>', where Object is localized */
ok
(
!
memcmp
(
buffW
,
verbW
,
sizeof
(
verbW
)
-
sizeof
(
WCHAR
)),
"str %s
\n
"
,
wine_dbgstr_w
(
buffW
));
/* 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
(
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