summaryrefslogtreecommitdiff
path: root/vcl/headless
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-11-02 09:24:19 -0400
committerJan Holesovsky <kendy@collabora.com>2018-11-09 18:42:35 +0100
commitb5e8afda4728f360401c52f3c8c2c92bad9d2136 (patch)
treed350aba7bdaf5398550e2d83329da4ff3707812e /vcl/headless
parente010d5c3f8d3d6118323f750362e13e757f89e60 (diff)
LOK: custom widgets: check size of API structures
Change-Id: Iff50f7aeb471870230e9e822657deed6aefad268
Diffstat (limited to 'vcl/headless')
-rw-r--r--vcl/headless/CustomWidgetDraw.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/headless/CustomWidgetDraw.cxx b/vcl/headless/CustomWidgetDraw.cxx
index d7eb359311a8..d1454911489f 100644
--- a/vcl/headless/CustomWidgetDraw.cxx
+++ b/vcl/headless/CustomWidgetDraw.cxx
@@ -311,6 +311,7 @@ bool CustomWidgetDraw::updateSettings(AllSettings& rSettings)
return false;
WidgetDrawStyle aStyle;
+ aStyle.nSize = sizeof(WidgetDrawStyle);
if (s_pWidgetImplementation->updateSettings(aStyle))
{