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
306bd05f
Commit
306bd05f
authored
Aug 22, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Call LockContainer only if it's not already locked/unlocked.
- Only return S_OK in SetClientSite if IOleClientSite is not changed.
parent
f258d2ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
15 deletions
+26
-15
mshtml_private.h
dlls/mshtml/mshtml_private.h
+3
-0
oleobj.c
dlls/mshtml/oleobj.c
+23
-15
No files found.
dlls/mshtml/mshtml_private.h
View file @
306bd05f
...
...
@@ -66,6 +66,7 @@ typedef struct {
BOOL
ui_active
;
BOOL
window_active
;
BOOL
has_key_path
;
BOOL
container_locked
;
BindStatusCallback
*
status_callback
;
}
HTMLDocument
;
...
...
@@ -111,6 +112,8 @@ void HTMLDocument_NSContainer_Init(HTMLDocument*);
void
HTMLDocument_NSContainer_Destroy
(
HTMLDocument
*
);
void
HTMLDocument_LockContainer
(
HTMLDocument
*
,
BOOL
);
HRESULT
ProtocolFactory_Create
(
REFCLSID
,
REFIID
,
void
**
);
void
close_gecko
(
void
);
...
...
dlls/mshtml/oleobj.c
View file @
306bd05f
...
...
@@ -70,6 +70,9 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pClientSite
);
if
(
pClientSite
==
This
->
client
)
return
S_OK
;
if
(
This
->
client
)
IOleClientSite_Release
(
This
->
client
);
...
...
@@ -190,7 +193,6 @@ static HRESULT WINAPI OleObject_SetHostNames(IOleObject *iface, LPCOLESTR szCont
static
HRESULT
WINAPI
OleObject_Close
(
IOleObject
*
iface
,
DWORD
dwSaveOption
)
{
HTMLDocument
*
This
=
OLEOBJ_THIS
(
iface
);
HRESULT
hres
;
TRACE
(
"(%p)->(%08lx)
\n
"
,
This
,
dwSaveOption
);
...
...
@@ -200,14 +202,7 @@ static HRESULT WINAPI OleObject_Close(IOleObject *iface, DWORD dwSaveOption)
if
(
This
->
in_place_active
)
IOleInPlaceObjectWindowless_InPlaceDeactivate
(
INPLACEWIN
(
This
));
if
(
This
->
client
)
{
IOleContainer
*
container
;
hres
=
IOleClientSite_GetContainer
(
This
->
client
,
&
container
);
if
(
SUCCEEDED
(
hres
))
{
IOleContainer_LockContainer
(
container
,
FALSE
);
IOleContainer_Release
(
container
);
}
}
HTMLDocument_LockContainer
(
This
,
FALSE
);
return
S_OK
;
}
...
...
@@ -260,12 +255,8 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, LPMSG lpms
hres
=
IOleClientSite_QueryInterface
(
pActiveSite
,
&
IID_IOleDocumentSite
,
(
void
**
)
&
pDocSite
);
if
(
SUCCEEDED
(
hres
))
{
IOleContainer
*
pContainer
;
hres
=
IOleClientSite_GetContainer
(
pActiveSite
,
&
pContainer
);
if
(
SUCCEEDED
(
hres
))
{
IOleContainer_LockContainer
(
pContainer
,
TRUE
);
IOleContainer_Release
(
pContainer
);
}
HTMLDocument_LockContainer
(
This
,
TRUE
);
/* FIXME: Create new IOleDocumentView. See CreateView for more info. */
hres
=
IOleDocumentSite_ActivateMe
(
pDocSite
,
DOCVIEW
(
This
));
IOleDocumentSite_Release
(
pDocSite
);
...
...
@@ -1003,6 +994,22 @@ static const IOleControlVtbl OleControlVtbl = {
OleControl_FreezeEvents
};
void
HTMLDocument_LockContainer
(
HTMLDocument
*
This
,
BOOL
fLock
)
{
IOleContainer
*
container
;
HRESULT
hres
;
if
(
!
This
->
client
||
This
->
container_locked
==
fLock
)
return
;
hres
=
IOleClientSite_GetContainer
(
This
->
client
,
&
container
);
if
(
SUCCEEDED
(
hres
))
{
IOleContainer_LockContainer
(
container
,
fLock
);
This
->
container_locked
=
fLock
;
IOleContainer_Release
(
container
);
}
}
void
HTMLDocument_OleObj_Init
(
HTMLDocument
*
This
)
{
This
->
lpOleObjectVtbl
=
&
OleObjectVtbl
;
...
...
@@ -1014,4 +1021,5 @@ void HTMLDocument_OleObj_Init(HTMLDocument *This)
This
->
hostui
=
NULL
;
This
->
has_key_path
=
FALSE
;
This
->
container_locked
=
FALSE
;
}
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