X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e001091c6f7535cc1115d12dcc28412f85e47c16..d76a558d4d5216b0590907b92d3182f82057c1ae:/src/mgl/pen.cpp diff --git a/src/mgl/pen.cpp b/src/mgl/pen.cpp index 62db79bdf8..83ad3603da 100644 --- a/src/mgl/pen.cpp +++ b/src/mgl/pen.cpp @@ -38,8 +38,8 @@ public: // we intentionally don't compare m_hPen fields here return m_style == data.m_style && m_width == data.m_width && - memcmp(m_pixPattern, - data.m_pixPattern, sizeof(m_pixPattern)) == 0 && + memcmp(&m_pixPattern, + &data.m_pixPattern, sizeof(m_pixPattern)) == 0 && m_capStyle == data.m_capStyle && m_joinStyle == data.m_joinStyle && m_colour == data.m_colour &&