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
d8b6b01b
Commit
d8b6b01b
authored
May 30, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appwiz.cpl: Specify a default download URL for add-ons.
parent
e3d24386
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
30 deletions
+31
-30
addons.c
dlls/appwiz.cpl/addons.c
+30
-23
mshtml.inf
dlls/mshtml/mshtml.inf
+1
-5
wine.inf.in
tools/wine.inf.in
+0
-2
No files found.
dlls/appwiz.cpl/addons.c
View file @
d8b6b01b
...
...
@@ -72,6 +72,7 @@ typedef struct {
const
char
*
file_name
;
const
char
*
subdir_name
;
const
char
*
sha
;
const
char
*
url_default
;
const
char
*
config_key
;
const
char
*
url_config_key
;
const
char
*
dir_config_key
;
...
...
@@ -84,6 +85,7 @@ static const addon_info_t addons_info[] = {
"wine_gecko-"
GECKO_VERSION
"-"
ARCH_STRING
".msi"
,
"gecko"
,
GECKO_SHA
,
"http://source.winehq.org/winegecko.php"
,
"MSHTML"
,
"GeckoUrl"
,
"GeckoCabDir"
,
MAKEINTRESOURCEW
(
ID_DWL_GECKO_DIALOG
)
},
...
...
@@ -92,6 +94,7 @@ static const addon_info_t addons_info[] = {
"wine-mono-"
MONO_VERSION
".msi"
,
"mono"
,
MONO_SHA
,
"http://source.winehq.org/winemono.php"
,
"Dotnet"
,
"MonoUrl"
,
"MonoCabDir"
,
MAKEINTRESOURCEW
(
ID_DWL_MONO_DIALOG
)
}
...
...
@@ -425,6 +428,22 @@ static const IBindStatusCallbackVtbl InstallCallbackVtbl = {
static
IBindStatusCallback
InstallCallback
=
{
&
InstallCallbackVtbl
};
static
void
append_url_params
(
WCHAR
*
url
)
{
static
const
WCHAR
arch_formatW
[]
=
{
'?'
,
'a'
,
'r'
,
'c'
,
'h'
,
'='
};
static
const
WCHAR
v_formatW
[]
=
{
'&'
,
'v'
,
'='
};
DWORD
size
=
INTERNET_MAX_URL_LENGTH
*
sizeof
(
WCHAR
);
DWORD
len
=
strlenW
(
url
);
memcpy
(
url
+
len
,
arch_formatW
,
sizeof
(
arch_formatW
));
len
+=
sizeof
(
arch_formatW
)
/
sizeof
(
WCHAR
);
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
);
MultiByteToWideChar
(
CP_ACP
,
0
,
addon
->
version
,
-
1
,
url
+
len
,
size
/
sizeof
(
WCHAR
)
-
len
);
}
static
LPWSTR
get_url
(
void
)
{
DWORD
size
=
INTERNET_MAX_URL_LENGTH
*
sizeof
(
WCHAR
);
...
...
@@ -434,36 +453,24 @@ static LPWSTR get_url(void)
DWORD
returned_size
;
static
const
WCHAR
httpW
[]
=
{
'h'
,
't'
,
't'
,
'p'
};
static
const
WCHAR
arch_formatW
[]
=
{
'?'
,
'a'
,
'r'
,
'c'
,
'h'
,
'='
};
static
const
WCHAR
v_formatW
[]
=
{
'&'
,
'v'
,
'='
};
hkey
=
open_config_key
();
if
(
!
hkey
)
return
NULL
;
url
=
heap_alloc
(
size
);
returned_size
=
size
;
config_key
=
heap_strdupAtoW
(
addon
->
url_config_key
);
res
=
RegQueryValueExW
(
hkey
,
config_key
,
NULL
,
&
type
,
(
LPBYTE
)
url
,
&
returned_size
);
heap_free
(
config_key
);
RegCloseKey
(
hkey
);
if
(
res
!=
ERROR_SUCCESS
||
type
!=
REG_SZ
)
{
heap_free
(
url
);
return
NULL
;
hkey
=
open_config_key
();
if
(
hkey
)
{
config_key
=
heap_strdupAtoW
(
addon
->
url_config_key
);
res
=
RegQueryValueExW
(
hkey
,
config_key
,
NULL
,
&
type
,
(
LPBYTE
)
url
,
&
returned_size
);
heap_free
(
config_key
);
RegCloseKey
(
hkey
);
if
(
res
==
ERROR_SUCCESS
&&
type
==
REG_SZ
)
goto
found
;
}
if
(
returned_size
>
sizeof
(
httpW
)
&&
!
memcmp
(
url
,
httpW
,
sizeof
(
httpW
)))
{
DWORD
len
;
MultiByteToWideChar
(
CP_ACP
,
0
,
addon
->
url_default
,
-
1
,
url
,
size
/
sizeof
(
WCHAR
)
);
len
=
strlenW
(
url
);
memcpy
(
url
+
len
,
arch_formatW
,
sizeof
(
arch_formatW
));
len
+=
sizeof
(
arch_formatW
)
/
sizeof
(
WCHAR
);
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
);
MultiByteToWideChar
(
CP_ACP
,
0
,
addon
->
version
,
-
1
,
url
+
len
,
size
/
sizeof
(
WCHAR
)
-
len
);
}
found:
if
(
returned_size
>
sizeof
(
httpW
)
&&
!
memcmp
(
url
,
httpW
,
sizeof
(
httpW
)))
append_url_params
(
url
);
TRACE
(
"Got URL %s
\n
"
,
debugstr_w
(
url
));
return
url
;
...
...
dlls/mshtml/mshtml.inf
View file @
d8b6b01b
...
...
@@ -3,7 +3,7 @@ Signature="$CHICAGO$"
[RegisterDll]
AddReg=Classes.Reg, Protocols.Reg, IE.Reg, FileAssoc.Reg
, WineGecko.Reg
AddReg=Classes.Reg, Protocols.Reg, IE.Reg, FileAssoc.Reg
[UnregisterDll]
...
...
@@ -69,10 +69,6 @@ HKLM,"Software\Microsoft\Internet Explorer\Default Behaviors","TIME",, "CLSID:47
HKLM,"Software\Microsoft\Internet Explorer\ActiveX Compatibility","Version",,"6.17"
[WineGecko.Reg]
HKCU,Software\Wine\MSHTML,"GeckoUrl",,"http://source.winehq.org/winegecko.php"
[FileAssoc.Reg]
;; AVI
...
...
tools/wine.inf.in
View file @
d8b6b01b
...
...
@@ -712,8 +712,6 @@ HKLM,SOFTWARE\Microsoft\Active Setup\Installed Components\{de5aed00-a4bf-11d1-99
HKLM,SOFTWARE\Microsoft\Active Setup\Installed Components\{de5aed00-a4bf-11d1-9948-00c04f98bbc9},"Locale",2,"*"
HKLM,SOFTWARE\Microsoft\Active Setup\Installed Components\{de5aed00-a4bf-11d1-9948-00c04f98bbc9},"Version",2,"4,74,9273,0"
HKCU,SOFTWARE\Wine\Dotnet,"MonoUrl",,"http://source.winehq.org/winemono.php"
[Nls]
HKLM,System\CurrentControlSet\Control\Nls\Codepage,"37",,""
HKLM,System\CurrentControlSet\Control\Nls\Language,"0401",,""
...
...
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