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
a131886a
Commit
a131886a
authored
Dec 27, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fixed unsafe cast in CreateChromeWindow2 implementation.
parent
f52e0a77
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
nsembed.c
dlls/mshtml/nsembed.c
+11
-2
nsservice.c
dlls/mshtml/nsservice.c
+1
-2
No files found.
dlls/mshtml/mshtml_private.h
View file @
a131886a
...
...
@@ -705,6 +705,7 @@ void ConnectionPointContainer_Destroy(ConnectionPointContainer*);
NSContainer
*
NSContainer_Create
(
HTMLDocumentObj
*
,
NSContainer
*
);
void
NSContainer_Release
(
NSContainer
*
);
nsresult
create_chrome_window
(
nsIWebBrowserChrome
*
,
nsIWebBrowserChrome
**
);
void
init_mutation
(
HTMLDocumentNode
*
);
void
release_mutation
(
HTMLDocumentNode
*
);
...
...
dlls/mshtml/nsembed.c
View file @
a131886a
...
...
@@ -1150,8 +1150,6 @@ static nsresult NSAPI nsWebBrowserChrome_ExitModalEventLoop(nsIWebBrowserChrome
return
NS_ERROR_NOT_IMPLEMENTED
;
}
#undef NSWBCHROME_THIS
static
const
nsIWebBrowserChromeVtbl
nsWebBrowserChromeVtbl
=
{
nsWebBrowserChrome_QueryInterface
,
nsWebBrowserChrome_AddRef
,
...
...
@@ -1711,6 +1709,17 @@ static const nsISupportsWeakReferenceVtbl nsSupportsWeakReferenceVtbl = {
nsSupportsWeakReference_GetWeakReference
};
nsresult
create_chrome_window
(
nsIWebBrowserChrome
*
parent
,
nsIWebBrowserChrome
**
ret
)
{
NSContainer
*
new_container
;
if
(
parent
->
lpVtbl
!=
&
nsWebBrowserChromeVtbl
)
return
NS_ERROR_UNEXPECTED
;
new_container
=
NSContainer_Create
(
NULL
,
NSWBCHROME_THIS
(
parent
));
*
ret
=
NSWBCHROME
(
new_container
);
return
NS_OK
;
}
NSContainer
*
NSContainer_Create
(
HTMLDocumentObj
*
doc
,
NSContainer
*
parent
)
{
...
...
dlls/mshtml/nsservice.c
View file @
a131886a
...
...
@@ -99,8 +99,7 @@ static nsresult NSAPI nsWindowCreator_CreateChromeWindow2(nsIWindowCreator2 *ifa
if
(
cancel
)
*
cancel
=
FALSE
;
*
_retval
=
NSWBCHROME
(
NSContainer_Create
(
NULL
,
(
NSContainer
*
)
parent
));
return
NS_OK
;
return
create_chrome_window
(
parent
,
_retval
);
}
static
const
nsIWindowCreator2Vtbl
nsWindowCreatorVtbl
=
{
...
...
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