Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ec48726f
Commit
ec48726f
authored
Aug 22, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always add gecko directory to the path before loading xpcom.
parent
80af4940
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
17 deletions
+13
-17
nsembed.c
dlls/mshtml/nsembed.c
+13
-17
No files found.
dlls/mshtml/nsembed.c
View file @
ec48726f
...
...
@@ -178,8 +178,11 @@ static BOOL load_gecko()
nsString
path
;
nsIFile
*
gre_dir
;
PRUnichar
gre_path
[
MAX_PATH
];
WCHAR
path_env
[
MAX_PATH
];
int
len
;
static
BOOL
tried_load
=
FALSE
;
static
const
WCHAR
wszPATH
[]
=
{
'P'
,
'A'
,
'T'
,
'H'
,
0
};
static
const
WCHAR
strXPCOM
[]
=
{
'x'
,
'p'
,
'c'
,
'o'
,
'm'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
TRACE
(
"()
\n
"
);
...
...
@@ -192,27 +195,20 @@ static BOOL load_gecko()
MESSAGE
(
"Could not load Mozilla. HTML rendering will be disabled.
\n
"
);
return
FALSE
;
}
TRACE
(
"found path %s
\n
"
,
debugstr_w
(
gre_path
));
/* We have to modify PATH as XPCOM loads other DLLs from this directory. */
GetEnvironmentVariableW
(
wszPATH
,
path_env
,
sizeof
(
path_env
)
/
sizeof
(
WCHAR
));
len
=
strlenW
(
path_env
);
path_env
[
len
++
]
=
';'
;
strcpyW
(
path_env
+
len
,
gre_path
);
SetEnvironmentVariableW
(
wszPATH
,
path_env
);
hXPCOM
=
LoadLibraryW
(
strXPCOM
);
if
(
!
hXPCOM
)
{
/* We have to modify PATH as XPCOM loads other DLLs from this directory. */
WCHAR
path_env
[
MAX_PATH
];
static
WCHAR
wszPATH
[]
=
{
'P'
,
'A'
,
'T'
,
'H'
,
0
};
int
len
;
GetEnvironmentVariableW
(
wszPATH
,
path_env
,
sizeof
(
path_env
)
/
sizeof
(
WCHAR
));
len
=
strlenW
(
path_env
);
path_env
[
len
++
]
=
';'
;
strcpyW
(
path_env
+
len
,
gre_path
);
SetEnvironmentVariableW
(
wszPATH
,
path_env
);
hXPCOM
=
LoadLibraryW
(
strXPCOM
);
if
(
!
hXPCOM
)
{
ERR
(
"Could not load XPCOM: %ld
\n
"
,
GetLastError
());
return
FALSE
;
}
ERR
(
"Could not load XPCOM: %ld
\n
"
,
GetLastError
());
return
FALSE
;
}
#define NS_DLSYM(func) \
...
...
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