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
c23ce884
Commit
c23ce884
authored
Oct 31, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Nov 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Set IE version when installing wine gecko.
parent
9980f478
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
install.c
dlls/mshtml/install.c
+25
-1
No files found.
dlls/mshtml/install.c
View file @
c23ce884
...
...
@@ -54,6 +54,14 @@ static const WCHAR mshtml_keyW[] =
'\\'
,
'W'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'M'
,
'S'
,
'H'
,
'T'
,
'M'
,
'L'
,
0
};
static
const
WCHAR
wszMSIE
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'I'
,
'n'
,
't'
,
'e'
,
'r'
,
'n'
,
'e'
,
't'
,
' '
,
'E'
,
'x'
,
'p'
,
'l'
,
'o'
,
'r'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
wszIEVersion
[]
=
{
'6'
,
'.'
,
'0'
,
'.'
,
'2'
,
'9'
,
'0'
,
'0'
,
'.'
,
'2'
,
'1'
,
'8'
,
'0'
,
0
};
static
HWND
install_dialog
=
NULL
;
static
LPWSTR
tmp_file_name
=
NULL
;
static
HANDLE
tmp_file
=
INVALID_HANDLE_VALUE
;
...
...
@@ -97,6 +105,7 @@ static void set_registry(LPCSTR install_dir)
static
const
WCHAR
wszGeckoPath
[]
=
{
'G'
,
'e'
,
'c'
,
'k'
,
'o'
,
'P'
,
'a'
,
't'
,
'h'
,
0
};
static
const
WCHAR
wszWineGecko
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
'_'
,
'g'
,
'e'
,
'c'
,
'k'
,
'o'
,
0
};
static
const
WCHAR
wszVersion
[]
=
{
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
0
};
memcpy
(
mshtml_key
,
mshtml_keyW
,
sizeof
(
mshtml_keyW
));
mshtml_key
[
sizeof
(
mshtml_keyW
)
/
sizeof
(
WCHAR
)
-
1
]
=
'\\'
;
...
...
@@ -125,8 +134,23 @@ static void set_registry(LPCSTR install_dir)
len
*
sizeof
(
WCHAR
)
+
sizeof
(
wszWineGecko
));
mshtml_free
(
gecko_path
);
RegCloseKey
(
hkey
);
if
(
res
!=
ERROR_SUCCESS
)
if
(
res
!=
ERROR_SUCCESS
)
{
ERR
(
"Failed to set GeckoPath value: %08x
\n
"
,
res
);
return
;
}
res
=
RegCreateKeyW
(
HKEY_LOCAL_MACHINE
,
wszMSIE
,
&
hkey
);
if
(
res
!=
ERROR_SUCCESS
)
{
ERR
(
"Failed to create Internet Explorer key: %d
\n
"
,
res
);
return
;
}
res
=
RegSetValueExW
(
hkey
,
wszVersion
,
0
,
REG_SZ
,
(
LPVOID
)
wszIEVersion
,
sizeof
(
wszIEVersion
));
if
(
res
!=
ERROR_SUCCESS
)
{
ERR
(
"Failed to set Version value: %d
\n
"
,
res
);
return
;
}
}
static
BOOL
install_cab
(
LPCWSTR
file_name
)
...
...
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