From: Vadim Zeitlin Date: Sun, 11 May 2003 23:25:14 +0000 (+0000) Subject: fixed bug in WinStruct<> ctor X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5eae641dd681ecc837205ee84560b1cc89baf91f fixed bug in WinStruct<> ctor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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); } };