From b4446c244775324631b8dd2b588ea35f32e71728 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Fri, 26 May 2006 14:56:11 +0000 Subject: [PATCH] Fixed OpenWatcom (strange) scope related crash. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/datectrl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/msw/datectrl.cpp b/src/msw/datectrl.cpp index 8602e3d966..f08a67a8d4 100644 --- a/src/msw/datectrl.cpp +++ b/src/msw/datectrl.cpp @@ -314,6 +314,7 @@ wxDatePickerCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) switch ( hdr->code ) { case DTN_DATETIMECHANGE: + { NMDATETIMECHANGE *dtch = (NMDATETIMECHANGE *)hdr; wxDateTime dt; if ( dtch->dwFlags == GDT_VALID ) @@ -325,6 +326,7 @@ wxDatePickerCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) *result = 0; return true; } + } } return wxDatePickerCtrlBase::MSWOnNotify(idCtrl, lParam, result); -- 2.45.2