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
84098e54
Commit
84098e54
authored
Oct 18, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added support for installing Gecko from build dir.
parent
52b78f05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
install.c
dlls/mshtml/install.c
+12
-9
No files found.
dlls/mshtml/install.c
View file @
84098e54
...
...
@@ -251,22 +251,25 @@ static BOOL install_from_registered_dir(void)
static
BOOL
install_from_default_dir
(
void
)
{
const
char
*
data_dir
;
const
char
*
data_dir
,
*
subdir
;
char
*
file_name
;
int
len
;
int
len
,
len2
;
BOOL
ret
;
static
const
char
gecko_dir
[]
=
"/gecko/"
;
data_dir
=
wine_get_data_dir
();
if
(
!
data_dir
)
return
FALSE
;
if
((
data_dir
=
wine_get_data_dir
()))
subdir
=
"/gecko/"
;
else
if
((
data_dir
=
wine_get_build_dir
()))
subdir
=
"/../gecko/"
;
else
return
FALSE
;
len
=
strlen
(
data_dir
);
len2
=
strlen
(
subdir
);
file_name
=
mshtml_alloc
(
len
+
sizeof
(
gecko_dir
)
+
sizeof
(
GECKO_FILE_NAME
));
file_name
=
mshtml_alloc
(
len
+
len2
+
sizeof
(
GECKO_FILE_NAME
));
memcpy
(
file_name
,
data_dir
,
len
);
memcpy
(
file_name
+
len
,
gecko_dir
,
sizeof
(
gecko_dir
)
);
memcpy
(
file_name
+
len
+
sizeof
(
gecko_dir
)
-
1
,
GECKO_FILE_NAME
,
sizeof
(
GECKO_FILE_NAME
));
memcpy
(
file_name
+
len
,
subdir
,
len2
);
memcpy
(
file_name
+
len
+
len2
,
GECKO_FILE_NAME
,
sizeof
(
GECKO_FILE_NAME
));
ret
=
install_from_unix_file
(
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