From: Julian Smart Date: Thu, 10 Dec 1998 22:55:56 +0000 (+0000) Subject: #ifdefed out Ole... functions for Cygwin. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5de5db0eb14aa86b5b177050720deb0f4c210fba?ds=inline #ifdefed out Ole... functions for Cygwin. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 9d46228d8b..300ec55493 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -186,10 +186,12 @@ bool wxApp::Initialize() return FALSE; } */ - + +#ifndef __GNUWIN32__ // we need to initialize OLE library if ( FAILED(::OleInitialize(NULL)) ) wxFatalError(_("Cannot initialize OLE")); +#endif #if CTL3D if (!Ctl3dRegister(wxhInstance)) @@ -502,7 +504,9 @@ void wxApp::CleanUp() if ( wxDisableButtonBrush ) ::DeleteObject( wxDisableButtonBrush ) ; +#ifndef __GNUWIN32__ ::OleUninitialize(); +#endif #if CTL3D Ctl3dUnregister(wxhInstance);