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
d40a0d8a
Commit
d40a0d8a
authored
Jan 02, 2024
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 17, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appwiz.cpl: Load dynamically wine_get_version().
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
564b796e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
addons.c
dlls/appwiz.cpl/addons.c
+3
-3
No files found.
dlls/appwiz.cpl/addons.c
View file @
d40a0d8a
...
...
@@ -108,8 +108,7 @@ static LPWSTR url = NULL;
static
IBinding
*
dwl_binding
;
static
WCHAR
*
msi_file
;
extern
const
char
*
CDECL
wine_get_version
(
void
);
static
const
char
*
(
CDECL
*
p_wine_get_version
)(
void
);
static
WCHAR
*
(
CDECL
*
p_wine_get_dos_file_name
)(
const
char
*
);
static
BOOL
sha_check
(
const
WCHAR
*
file_name
)
...
...
@@ -610,7 +609,7 @@ static void append_url_params( WCHAR *url )
len
+=
MultiByteToWideChar
(
CP_ACP
,
0
,
addon
->
version
,
-
1
,
url
+
len
,
size
/
sizeof
(
WCHAR
)
-
len
)
-
1
;
lstrcpyW
(
url
+
len
,
L"&winev="
);
len
+=
lstrlenW
(
L"&winev="
);
MultiByteToWideChar
(
CP_ACP
,
0
,
wine_get_version
()
,
-
1
,
url
+
len
,
size
/
sizeof
(
WCHAR
)
-
len
);
MultiByteToWideChar
(
CP_ACP
,
0
,
p_wine_get_version
()
?
p_wine_get_version
()
:
0
,
-
1
,
url
+
len
,
size
/
sizeof
(
WCHAR
)
-
len
);
}
static
LPWSTR
get_url
(
void
)
...
...
@@ -751,6 +750,7 @@ BOOL install_addon(addon_t addon_type)
addon
=
addons_info
+
addon_type
;
p_wine_get_dos_file_name
=
(
void
*
)
GetProcAddress
(
GetModuleHandleW
(
L"kernel32.dll"
),
"wine_get_dos_file_name"
);
p_wine_get_version
=
(
void
*
)
GetProcAddress
(
GetModuleHandleW
(
L"ntdll.dll"
),
"wine_get_version"
);
/*
* Try to find addon .msi file in following order:
...
...
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