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
68a47a8b
Commit
68a47a8b
authored
Nov 09, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appwiz.cpl: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
165000d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
addons.c
dlls/appwiz.cpl/addons.c
+5
-5
No files found.
dlls/appwiz.cpl/addons.c
View file @
68a47a8b
...
...
@@ -636,14 +636,14 @@ static void append_url_params( WCHAR *url )
DWORD
len
=
strlenW
(
url
);
memcpy
(
url
+
len
,
arch_formatW
,
sizeof
(
arch_formatW
));
len
+=
sizeof
(
arch_formatW
)
/
sizeof
(
WCHAR
);
len
+=
ARRAY_SIZE
(
arch_formatW
);
len
+=
MultiByteToWideChar
(
CP_ACP
,
0
,
ARCH_STRING
,
sizeof
(
ARCH_STRING
),
url
+
len
,
size
/
sizeof
(
WCHAR
)
-
len
)
-
1
;
memcpy
(
url
+
len
,
v_formatW
,
sizeof
(
v_formatW
));
len
+=
sizeof
(
v_formatW
)
/
sizeof
(
WCHAR
);
len
+=
ARRAY_SIZE
(
v_formatW
);
len
+=
MultiByteToWideChar
(
CP_ACP
,
0
,
addon
->
version
,
-
1
,
url
+
len
,
size
/
sizeof
(
WCHAR
)
-
len
)
-
1
;
memcpy
(
url
+
len
,
winevW
,
sizeof
(
winevW
));
len
+=
sizeof
(
winevW
)
/
sizeof
(
WCHAR
);
len
+=
ARRAY_SIZE
(
winevW
);
MultiByteToWideChar
(
CP_ACP
,
0
,
PACKAGE_VERSION
,
-
1
,
url
+
len
,
size
/
sizeof
(
WCHAR
)
-
len
);
}
...
...
@@ -717,9 +717,9 @@ static void run_winebrowser(const WCHAR *url)
url_len
=
strlenW
(
url
);
len
=
GetSystemDirectoryW
(
app
,
MAX_PATH
-
sizeof
(
winebrowserW
)
/
sizeof
(
WCHAR
));
len
=
GetSystemDirectoryW
(
app
,
MAX_PATH
-
ARRAY_SIZE
(
winebrowserW
));
memcpy
(
app
+
len
,
winebrowserW
,
sizeof
(
winebrowserW
));
len
+=
sizeof
(
winebrowserW
)
/
sizeof
(
WCHAR
)
-
1
;
len
+=
ARRAY_SIZE
(
winebrowserW
)
-
1
;
args
=
heap_alloc
((
len
+
1
+
url_len
)
*
sizeof
(
WCHAR
));
if
(
!
args
)
...
...
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