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
84cec289
Commit
84cec289
authored
Aug 08, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvfw32: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
17294a6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
mciwnd.c
dlls/msvfw32/mciwnd.c
+1
-2
msvideo_main.c
dlls/msvfw32/msvideo_main.c
+1
-2
No files found.
dlls/msvfw32/mciwnd.c
View file @
84cec289
...
...
@@ -1006,8 +1006,7 @@ end_of_mci_open:
cmdW
=
(
LPWSTR
)
lParam
;
mwi
->
lasterror
=
mciSendStringW
(
cmdW
,
mwi
->
return_string
,
sizeof
(
mwi
->
return_string
)
/
sizeof
(
mwi
->
return_string
[
0
]),
0
);
ARRAY_SIZE
(
mwi
->
return_string
),
0
);
if
(
mwi
->
lasterror
)
MCIWND_notify_error
(
mwi
);
...
...
dlls/msvfw32/msvideo_main.c
View file @
84cec289
...
...
@@ -319,8 +319,7 @@ static BOOL ICInfo_enum_handler(const char *name, const char *driver, unsigned i
lpicinfo
->
dwVersionICM
=
ICVERSION
;
lpicinfo
->
szName
[
0
]
=
0
;
lpicinfo
->
szDescription
[
0
]
=
0
;
MultiByteToWideChar
(
CP_ACP
,
0
,
driver
,
-
1
,
lpicinfo
->
szDriver
,
sizeof
(
lpicinfo
->
szDriver
)
/
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
driver
,
-
1
,
lpicinfo
->
szDriver
,
ARRAY_SIZE
(
lpicinfo
->
szDriver
));
return
TRUE
;
}
...
...
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