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
f9cbbab5
Commit
f9cbbab5
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: Added gecko debug channel to control Gecko logging.
parent
fd4832ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
nsembed.c
dlls/mshtml/nsembed.c
+16
-2
No files found.
dlls/mshtml/nsembed.c
View file @
f9cbbab5
...
...
@@ -34,6 +34,7 @@
#include "mshtml_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
WINE_DECLARE_DEBUG_CHANNEL
(
gecko
);
#define NS_APPSTARTUPNOTIFIER_CONTRACTID "@mozilla.org/embedcomp/appstartup-notifier;1"
#define NS_WEBBROWSER_CONTRACTID "@mozilla.org/embedding/browser/nsWebBrowser;1"
...
...
@@ -144,13 +145,16 @@ static void register_nscontainer_class(void)
static
void
set_environment
(
LPCWSTR
gre_path
)
{
WCHAR
path_env
[
MAX_PATH
];
int
len
;
WCHAR
path_env
[
MAX_PATH
]
,
buf
[
20
]
;
int
len
,
debug_level
=
0
;
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
};
static
const
WCHAR
nspr_log_modulesW
[]
=
{
'N'
,
'S'
,
'P'
,
'R'
,
'_'
,
'L'
,
'O'
,
'G'
,
'_'
,
'M'
,
'O'
,
'D'
,
'U'
,
'L'
,
'E'
,
'S'
,
0
};
static
const
WCHAR
debug_formatW
[]
=
{
'a'
,
'l'
,
'l'
,
':'
,
'%'
,
'd'
,
0
};
/* We have to modify PATH as XPCOM loads other DLLs from this directory. */
GetEnvironmentVariableW
(
pathW
,
path_env
,
sizeof
(
path_env
)
/
sizeof
(
WCHAR
));
...
...
@@ -160,6 +164,16 @@ static void set_environment(LPCWSTR gre_path)
SetEnvironmentVariableW
(
pathW
,
path_env
);
SetEnvironmentVariableW
(
xpcom_debug_breakW
,
warnW
);
if
(
TRACE_ON
(
gecko
))
debug_level
=
5
;
else
if
(
WARN_ON
(
gecko
))
debug_level
=
3
;
else
if
(
ERR_ON
(
gecko
))
debug_level
=
2
;
sprintfW
(
buf
,
debug_formatW
,
debug_level
);
SetEnvironmentVariableW
(
nspr_log_modulesW
,
buf
);
}
static
BOOL
load_xpcom
(
const
PRUnichar
*
gre_path
)
...
...
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