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
7901d5f2
Commit
7901d5f2
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: Remove no longer needed set_profile.
parent
3920d42f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
nsembed.c
dlls/mshtml/nsembed.c
+0
-30
No files found.
dlls/mshtml/nsembed.c
View file @
7901d5f2
...
...
@@ -369,35 +369,6 @@ static void set_bool_pref(nsIPrefBranch *pref, const char *pref_name, BOOL val)
ERR
(
"Could not set pref %s
\n
"
,
debugstr_a
(
pref_name
));
}
static
void
set_profile
(
void
)
{
nsIProfile
*
profile
;
PRBool
exists
=
FALSE
;
nsresult
nsres
;
static
const
WCHAR
wszMSHTML
[]
=
{
'M'
,
'S'
,
'H'
,
'T'
,
'M'
,
'L'
,
0
};
nsres
=
nsIServiceManager_GetServiceByContractID
(
pServMgr
,
NS_PROFILE_CONTRACTID
,
&
IID_nsIProfile
,
(
void
**
)
&
profile
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get profile service: %08x
\n
"
,
nsres
);
return
;
}
nsres
=
nsIProfile_ProfileExists
(
profile
,
wszMSHTML
,
&
exists
);
if
(
!
exists
)
{
nsres
=
nsIProfile_CreateNewProfile
(
profile
,
wszMSHTML
,
NULL
,
NULL
,
FALSE
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"CreateNewProfile failed: %08x
\n
"
,
nsres
);
}
nsres
=
nsIProfile_SetCurrentProfile
(
profile
,
wszMSHTML
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"SetCurrentProfile failed: %08x
\n
"
,
nsres
);
nsIProfile_Release
(
profile
);
}
static
void
set_preferences
(
void
)
{
nsIPrefBranch
*
pref
;
...
...
@@ -473,7 +444,6 @@ static BOOL init_xpcom(const PRUnichar *gre_path)
ERR
(
"could not get appstartup-notifier: %08x
\n
"
,
nsres
);
}
set_profile
();
set_preferences
();
nsres
=
nsIComponentManager_CreateInstanceByContractID
(
pCompMgr
,
NS_MEMORY_CONTRACTID
,
...
...
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