Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
253d39bf
Commit
253d39bf
authored
Jul 26, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpr: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
077db39c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
wnet.c
dlls/mpr/wnet.c
+3
-4
No files found.
dlls/mpr/wnet.c
View file @
253d39bf
...
...
@@ -130,9 +130,8 @@ static void _tryLoadProvider(PCWSTR provider)
HKEY
hKey
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
provider
));
snprintfW
(
serviceName
,
sizeof
(
serviceName
)
/
sizeof
(
WCHAR
),
serviceFmt
,
servicePrefix
,
provider
);
serviceName
[
sizeof
(
serviceName
)
/
sizeof
(
WCHAR
)
-
1
]
=
'\0'
;
snprintfW
(
serviceName
,
ARRAY_SIZE
(
serviceName
),
serviceFmt
,
servicePrefix
,
provider
);
serviceName
[
ARRAY_SIZE
(
serviceName
)
-
1
]
=
'\0'
;
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
serviceName
,
0
,
KEY_READ
,
&
hKey
)
==
ERROR_SUCCESS
)
{
...
...
@@ -2127,7 +2126,7 @@ DWORD WINAPI WNetGetConnectionA( LPCSTR lpLocalName,
if
(
wideLocalName
)
{
WCHAR
wideRemoteStatic
[
MAX_PATH
];
DWORD
wideRemoteSize
=
sizeof
(
wideRemoteStatic
)
/
sizeof
(
WCHAR
);
DWORD
wideRemoteSize
=
ARRAY_SIZE
(
wideRemoteStatic
);
MultiByteToWideChar
(
CP_ACP
,
0
,
lpLocalName
,
-
1
,
wideLocalName
,
len
);
...
...
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