X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3432c148c23b6ce89f784865fbfe1ba23e514d39..697c314b162ff4758db0047e548d5401994d2c70:/src/msw/toplevel.cpp diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index a75e3e94cc..faa55fe617 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -545,7 +545,13 @@ bool wxTopLevelWindowMSW::Create(wxWindow *parent, // reuse the code in MSWGetStyle() but correct the results slightly for // the dialog - dlgTemplate->style = MSWGetStyle(style, &dlgTemplate->dwExtendedStyle); + // + // NB: we need a temporary variable as we can't pass pointer to + // dwExtendedStyle directly, it's not aligned correctly for 64 bit + // architectures + WXDWORD dwExtendedStyle; + dlgTemplate->style = MSWGetStyle(style, &dwExtendedStyle); + dlgTemplate->dwExtendedStyle = dwExtendedStyle; // all dialogs are popups dlgTemplate->style |= WS_POPUP;