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
cf403fa4
Commit
cf403fa4
authored
Sep 26, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use get_nsinterface in exec_print and do_ns_command.
parent
fa58e6ce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
21 deletions
+2
-21
olecmd.c
dlls/mshtml/olecmd.c
+2
-21
No files found.
dlls/mshtml/olecmd.c
View file @
cf403fa4
...
@@ -61,21 +61,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
...
@@ -61,21 +61,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
void
do_ns_command
(
NSContainer
*
This
,
const
char
*
cmd
,
nsICommandParams
*
nsparam
)
void
do_ns_command
(
NSContainer
*
This
,
const
char
*
cmd
,
nsICommandParams
*
nsparam
)
{
{
nsICommandManager
*
cmdmgr
;
nsICommandManager
*
cmdmgr
;
nsIInterfaceRequestor
*
iface_req
;
nsresult
nsres
;
nsresult
nsres
;
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
nsres
=
nsIWebBrowser_QueryInterface
(
This
->
webbrowser
,
nsres
=
get_nsinterface
((
nsISupports
*
)
This
->
webbrowser
,
&
IID_nsICommandManager
,
(
void
**
)
&
cmdmgr
);
&
IID_nsIInterfaceRequestor
,
(
void
**
)
&
iface_req
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIInterfaceRequestor: %08x
\n
"
,
nsres
);
return
;
}
nsres
=
nsIInterfaceRequestor_GetInterface
(
iface_req
,
&
IID_nsICommandManager
,
(
void
**
)
&
cmdmgr
);
nsIInterfaceRequestor_Release
(
iface_req
);
if
(
NS_FAILED
(
nsres
))
{
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsICommandManager: %08x
\n
"
,
nsres
);
ERR
(
"Could not get nsICommandManager: %08x
\n
"
,
nsres
);
return
;
return
;
...
@@ -241,7 +231,6 @@ static void set_default_templates(nsIPrintSettings *settings)
...
@@ -241,7 +231,6 @@ static void set_default_templates(nsIPrintSettings *settings)
static
HRESULT
exec_print
(
HTMLDocument
*
This
,
DWORD
nCmdexecopt
,
VARIANT
*
pvaIn
,
VARIANT
*
pvaOut
)
static
HRESULT
exec_print
(
HTMLDocument
*
This
,
DWORD
nCmdexecopt
,
VARIANT
*
pvaIn
,
VARIANT
*
pvaOut
)
{
{
nsIInterfaceRequestor
*
iface_req
;
nsIWebBrowserPrint
*
nsprint
;
nsIWebBrowserPrint
*
nsprint
;
nsIPrintSettings
*
settings
;
nsIPrintSettings
*
settings
;
nsresult
nsres
;
nsresult
nsres
;
...
@@ -254,16 +243,8 @@ static HRESULT exec_print(HTMLDocument *This, DWORD nCmdexecopt, VARIANT *pvaIn,
...
@@ -254,16 +243,8 @@ static HRESULT exec_print(HTMLDocument *This, DWORD nCmdexecopt, VARIANT *pvaIn,
if
(
!
This
->
nscontainer
)
if
(
!
This
->
nscontainer
)
return
S_OK
;
return
S_OK
;
nsres
=
nsIWebBrowser_QueryInterface
(
This
->
nscontainer
->
webbrowser
,
nsres
=
get_nsinterface
((
nsISupports
*
)
This
->
nscontainer
->
webbrowser
,
&
IID_nsIWebBrowserPrint
,
&
IID_nsIInterfaceRequestor
,
(
void
**
)
&
iface_req
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIInterfaceRequestor: %08x
\n
"
,
nsres
);
return
S_OK
;
}
nsres
=
nsIInterfaceRequestor_GetInterface
(
iface_req
,
&
IID_nsIWebBrowserPrint
,
(
void
**
)
&
nsprint
);
(
void
**
)
&
nsprint
);
nsIInterfaceRequestor_Release
(
iface_req
);
if
(
NS_FAILED
(
nsres
))
{
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIWebBrowserPrint: %08x
\n
"
,
nsres
);
ERR
(
"Could not get nsIWebBrowserPrint: %08x
\n
"
,
nsres
);
return
S_OK
;
return
S_OK
;
...
...
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