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
f10136a9
Commit
f10136a9
authored
Jun 02, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledlg/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
166f8e6c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
main.c
dlls/oledlg/tests/main.c
+4
-4
No files found.
dlls/oledlg/tests/main.c
View file @
f10136a9
...
@@ -385,7 +385,7 @@ static void test_OleUIAddVerbMenu(void)
...
@@ -385,7 +385,7 @@ static void test_OleUIAddVerbMenu(void)
info
.
cbSize
=
sizeof
(
info
);
info
.
cbSize
=
sizeof
(
info
);
info
.
fMask
=
MIIM_STATE
|
MIIM_ID
|
MIIM_STRING
|
MIIM_SUBMENU
;
info
.
fMask
=
MIIM_STATE
|
MIIM_ID
|
MIIM_STRING
|
MIIM_SUBMENU
;
info
.
dwTypeData
=
buffW
;
info
.
dwTypeData
=
buffW
;
info
.
cch
=
sizeof
(
buffW
)
/
sizeof
(
WCHAR
);
info
.
cch
=
ARRAY_SIZE
(
buffW
);
ret
=
GetMenuItemInfoW
(
hMenu
,
3
,
TRUE
,
&
info
);
ret
=
GetMenuItemInfoW
(
hMenu
,
3
,
TRUE
,
&
info
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
ok
(
info
.
fState
==
MF_GRAYED
,
"got state 0x%08x
\n
"
,
info
.
fState
);
ok
(
info
.
fState
==
MF_GRAYED
,
"got state 0x%08x
\n
"
,
info
.
fState
);
...
@@ -406,7 +406,7 @@ static void test_OleUIAddVerbMenu(void)
...
@@ -406,7 +406,7 @@ static void test_OleUIAddVerbMenu(void)
info
.
cbSize
=
sizeof
(
info
);
info
.
cbSize
=
sizeof
(
info
);
info
.
fMask
=
MIIM_STRING
|
MIIM_STATE
|
MIIM_SUBMENU
;
info
.
fMask
=
MIIM_STRING
|
MIIM_STATE
|
MIIM_SUBMENU
;
info
.
dwTypeData
=
buffW
;
info
.
dwTypeData
=
buffW
;
info
.
cch
=
sizeof
(
buffW
)
/
sizeof
(
WCHAR
);
info
.
cch
=
ARRAY_SIZE
(
buffW
);
ret
=
GetMenuItemInfoW
(
hMenu
,
4
,
TRUE
,
&
info
);
ret
=
GetMenuItemInfoW
(
hMenu
,
4
,
TRUE
,
&
info
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
/* Item string contains verb, usertype and localized string for 'Object' word,
/* Item string contains verb, usertype and localized string for 'Object' word,
...
@@ -462,7 +462,7 @@ static void test_OleUIAddVerbMenu(void)
...
@@ -462,7 +462,7 @@ static void test_OleUIAddVerbMenu(void)
ok
(
ret
,
"got %d
\n
"
,
ret
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
buffW
[
0
]
=
0
;
buffW
[
0
]
=
0
;
GetMenuStringW
(
hMenu
,
0
,
buffW
,
sizeof
(
buffW
)
/
sizeof
(
buffW
[
0
]
),
MF_BYPOSITION
);
GetMenuStringW
(
hMenu
,
0
,
buffW
,
ARRAY_SIZE
(
buffW
),
MF_BYPOSITION
);
ok
(
!
lstrcmpW
(
buffW
,
cadabraW
),
"got %s
\n
"
,
wine_dbgstr_w
(
buffW
));
ok
(
!
lstrcmpW
(
buffW
,
cadabraW
),
"got %s
\n
"
,
wine_dbgstr_w
(
buffW
));
verbmenu
=
NULL
;
verbmenu
=
NULL
;
...
@@ -475,7 +475,7 @@ static void test_OleUIAddVerbMenu(void)
...
@@ -475,7 +475,7 @@ static void test_OleUIAddVerbMenu(void)
info
.
fMask
=
MIIM_STRING
|
MIIM_STATE
;
info
.
fMask
=
MIIM_STRING
|
MIIM_STATE
;
buffW
[
0
]
=
0
;
buffW
[
0
]
=
0
;
info
.
dwTypeData
=
buffW
;
info
.
dwTypeData
=
buffW
;
info
.
cch
=
sizeof
(
buffW
)
/
sizeof
(
WCHAR
);
info
.
cch
=
ARRAY_SIZE
(
buffW
);
ret
=
GetMenuItemInfoW
(
hMenu
,
0
,
TRUE
,
&
info
);
ret
=
GetMenuItemInfoW
(
hMenu
,
0
,
TRUE
,
&
info
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
ok
(
lstrcmpW
(
buffW
,
cadabraW
),
"got %s
\n
"
,
wine_dbgstr_w
(
buffW
));
ok
(
lstrcmpW
(
buffW
,
cadabraW
),
"got %s
\n
"
,
wine_dbgstr_w
(
buffW
));
...
...
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