From 5eae641dd681ecc837205ee84560b1cc89baf91f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 11 May 2003 23:25:14 +0000 Subject: [PATCH] fixed bug in WinStruct<> ctor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/private.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 31a435f2a4..e3cb8dbc7b 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -338,7 +338,8 @@ struct WinStruct : public T { WinStruct() { - ::ZeroMemory(this, cbSize = sizeof(T)); + ::ZeroMemory(this, sizeof(T)); + cbSize = sizeof(T); } };