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
b586f6fa
Commit
b586f6fa
authored
Dec 07, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added config key to specify Gecko path.
parent
f6a7b6b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
nsembed.c
dlls/mshtml/nsembed.c
+25
-1
No files found.
dlls/mshtml/nsembed.c
View file @
b586f6fa
...
...
@@ -186,6 +186,29 @@ static BOOL get_mozctl_path(PRUnichar *gre_path)
return
TRUE
;
}
static
BOOL
get_wine_gecko_path
(
PRUnichar
*
gre_path
)
{
HKEY
hkey
;
DWORD
res
,
type
,
size
=
MAX_PATH
;
static
const
WCHAR
wszMshtmlKey
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'M'
,
'S'
,
'H'
,
'T'
,
'M'
,
'L'
,
0
};
static
const
WCHAR
wszGeckoPath
[]
=
{
'G'
,
'e'
,
'c'
,
'k'
,
'o'
,
'P'
,
'a'
,
't'
,
'h'
,
0
};
/* @@ Wine registry key: HKCU\Software\Wine\MSHTML */
res
=
RegOpenKeyW
(
HKEY_CURRENT_USER
,
wszMshtmlKey
,
&
hkey
);
if
(
res
!=
ERROR_SUCCESS
)
return
FALSE
;
res
=
RegQueryValueExW
(
hkey
,
wszGeckoPath
,
NULL
,
&
type
,
(
LPBYTE
)
gre_path
,
&
size
);
if
(
res
!=
ERROR_SUCCESS
||
type
!=
REG_SZ
)
return
FALSE
;
return
TRUE
;
}
static
BOOL
load_gecko
()
{
nsresult
nsres
;
...
...
@@ -206,7 +229,8 @@ static BOOL load_gecko()
return
pCompMgr
!=
NULL
;
tried_load
=
TRUE
;
if
(
!
get_mozctl_path
(
gre_path
)
&&
!
get_mozilla_path
(
gre_path
))
{
if
(
!
get_wine_gecko_path
(
gre_path
)
&&
!
get_mozctl_path
(
gre_path
)
&&
!
get_mozilla_path
(
gre_path
))
{
MESSAGE
(
"Could not load Mozilla. HTML rendering will be disabled.
\n
"
);
return
FALSE
;
}
...
...
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