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
bf163d79
Commit
bf163d79
authored
Apr 04, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Get rid of no longer needed app-startup observer initialization.
parent
7871a9f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
27 deletions
+2
-27
nsembed.c
dlls/mshtml/nsembed.c
+1
-17
nsiface.idl
dlls/mshtml/nsiface.idl
+1
-10
No files found.
dlls/mshtml/nsembed.c
View file @
bf163d79
...
...
@@ -46,8 +46,6 @@ WINE_DECLARE_DEBUG_CHANNEL(gecko);
#define NS_EDITORCONTROLLER_CONTRACTID "@mozilla.org/editor/editorcontroller;1"
#define NS_PREFERENCES_CONTRACTID "@mozilla.org/preferences;1"
#define APPSTARTUP_TOPIC "app-startup"
#define PR_UINT32_MAX 0xffffffff
#define NS_STRING_CONTAINER_INIT_DEPEND 0x0002
...
...
@@ -559,12 +557,11 @@ static void set_preferences(void)
static
BOOL
init_xpcom
(
const
PRUnichar
*
gre_path
)
{
nsresult
nsres
;
nsIObserver
*
pStartNotif
;
nsIComponentRegistrar
*
registrar
=
NULL
;
nsAString
path
;
nsIFile
*
gre_dir
;
WCHAR
*
ptr
;
nsresult
nsres
;
nsAString_InitDepend
(
&
path
,
gre_path
);
nsres
=
NS_NewLocalFile
(
&
path
,
FALSE
,
&
gre_dir
);
...
...
@@ -600,19 +597,6 @@ static BOOL init_xpcom(const PRUnichar *gre_path)
ERR
(
"NS_GetComponentRegistrar failed: %08x
\n
"
,
nsres
);
init_mutation
(
pCompMgr
);
nsres
=
nsIComponentManager_CreateInstanceByContractID
(
pCompMgr
,
NS_APPSTARTUPNOTIFIER_CONTRACTID
,
NULL
,
&
IID_nsIObserver
,
(
void
**
)
&
pStartNotif
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsres
=
nsIObserver_Observe
(
pStartNotif
,
NULL
,
APPSTARTUP_TOPIC
,
NULL
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"Observe failed: %08x
\n
"
,
nsres
);
nsIObserver_Release
(
pStartNotif
);
}
else
{
ERR
(
"could not get appstartup-notifier: %08x
\n
"
,
nsres
);
}
set_preferences
();
nsres
=
nsIComponentManager_CreateInstanceByContractID
(
pCompMgr
,
NS_MEMORY_CONTRACTID
,
...
...
dlls/mshtml/nsiface.idl
View file @
bf163d79
...
...
@@ -153,6 +153,7 @@ typedef nsISupports nsIPluginStreamListener;
typedef nsISupports nsIContentSink;
typedef nsISupports nsIParserFilter;
typedef nsISupports nsIDTD;
typedef nsISupports nsIObserver;
[
object,
...
...
@@ -180,16 +181,6 @@ interface nsIFactory : nsISupports
[
object,
uuid(db242e01-e4d9-11d2-9dde-000064657374),
local
]
interface nsIObserver : nsISupports
{
nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
}
[
object,
uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
local
]
...
...
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