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
fd4832ea
Commit
fd4832ea
authored
Dec 30, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 31, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Set XPCOM_DEBUG_BREAK to 'warn' before loading Gecko.
parent
91af3c56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
nsembed.c
dlls/mshtml/nsembed.c
+18
-7
No files found.
dlls/mshtml/nsembed.c
View file @
fd4832ea
...
...
@@ -142,22 +142,33 @@ static void register_nscontainer_class(void)
nscontainer_class
=
RegisterClassExW
(
&
wndclass
);
}
static
BOOL
load_xpcom
(
const
PRUnichar
*
gre_path
)
static
void
set_environment
(
LPCWSTR
gre_path
)
{
WCHAR
path_env
[
MAX_PATH
];
int
len
;
static
const
WCHAR
wszPATH
[]
=
{
'P'
,
'A'
,
'T'
,
'H'
,
0
};
static
const
WCHAR
strXPCOM
[]
=
{
'x'
,
'p'
,
'c'
,
'o'
,
'm'
,
'.'
,
'd'
,
'l'
,
'l
'
,
0
};
TRACE
(
"(%s)
\n
"
,
debugstr_w
(
gre_path
))
;
static
const
WCHAR
pathW
[]
=
{
'P'
,
'A'
,
'T'
,
'H'
,
0
};
static
const
WCHAR
warnW
[]
=
{
'w'
,
'a'
,
'r'
,
'n
'
,
0
};
static
const
WCHAR
xpcom_debug_breakW
[]
=
{
'X'
,
'P'
,
'C'
,
'O'
,
'M'
,
'_'
,
'D'
,
'E'
,
'B'
,
'U'
,
'G'
,
'_'
,
'B'
,
'R'
,
'E'
,
'A'
,
'K'
,
0
}
;
/* We have to modify PATH as XPCOM loads other DLLs from this directory. */
GetEnvironmentVariableW
(
wszPATH
,
path_env
,
sizeof
(
path_env
)
/
sizeof
(
WCHAR
));
GetEnvironmentVariableW
(
pathW
,
path_env
,
sizeof
(
path_env
)
/
sizeof
(
WCHAR
));
len
=
strlenW
(
path_env
);
path_env
[
len
++
]
=
';'
;
strcpyW
(
path_env
+
len
,
gre_path
);
SetEnvironmentVariableW
(
wszPATH
,
path_env
);
SetEnvironmentVariableW
(
pathW
,
path_env
);
SetEnvironmentVariableW
(
xpcom_debug_breakW
,
warnW
);
}
static
BOOL
load_xpcom
(
const
PRUnichar
*
gre_path
)
{
static
const
WCHAR
strXPCOM
[]
=
{
'x'
,
'p'
,
'c'
,
'o'
,
'm'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
TRACE
(
"(%s)
\n
"
,
debugstr_w
(
gre_path
));
set_environment
(
gre_path
);
hXPCOM
=
LoadLibraryW
(
strXPCOM
);
if
(
!
hXPCOM
)
{
...
...
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