appwiz.cpl: Load dynamically wine_get_version().
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
parent
564b796e36
commit
d40a0d8a1d
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue