X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dfc40ef3439ae7b5f06918d61ae081aec75c6eda..1483041dab88f43563c26405c1e2a41d6babe6a0:/src/msw/app.cpp diff --git a/src/msw/app.cpp b/src/msw/app.cpp index ea3044497a..4bbbd7f651 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -252,9 +252,11 @@ bool wxApp::Initialize() ; #endif // Win16 +#if wxUSE_OLE // we need to initialize OLE library if ( FAILED(::OleInitialize(NULL)) ) wxLogError(_("Cannot initialize OLE")); +#endif #endif // wxUSE_OLE