mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 571730: Initialize the entire XEvent union so that our simple memcpy() serializer doesn't cause valgrind to complain on copying an X*Event smaller than XEvent. r=karlt
This commit is contained in:
parent
ccb97b45d7
commit
e4c6da5f2d
@ -4704,7 +4704,7 @@ nsEventStatus nsPluginInstanceOwner::ProcessEvent(const nsGUIEvent& anEvent)
|
||||
#ifdef MOZ_X11
|
||||
// this code supports windowless plugins
|
||||
nsIWidget* widget = anEvent.widget;
|
||||
XEvent pluginEvent;
|
||||
XEvent pluginEvent = XEvent();
|
||||
pluginEvent.type = 0;
|
||||
|
||||
switch(anEvent.eventStructType)
|
||||
@ -5574,7 +5574,7 @@ nsPluginInstanceOwner::Renderer::NativeDraw(gfxXlibSurface * xsurface,
|
||||
#ifdef MOZ_COMPOSITED_PLUGINS
|
||||
if (mWindow->type == NPWindowTypeDrawable) {
|
||||
#endif
|
||||
XEvent pluginEvent;
|
||||
XEvent pluginEvent = XEvent();
|
||||
XGraphicsExposeEvent& exposeEvent = pluginEvent.xgraphicsexpose;
|
||||
// set the drawing info
|
||||
exposeEvent.type = GraphicsExpose;
|
||||
|
Loading…
Reference in New Issue
Block a user