]> git.saurik.com Git - wxWidgets.git/commitdiff
(run-time) fix for !wxUSE_IPC build
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Jan 2000 00:07:31 +0000 (00:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Jan 2000 00:07:31 +0000 (00:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/mimetype.cpp

index 7d09acec8b6ad5ad35d108b15bdbe1572cfe2ed1..e499d2b96054700e3c8e0313484068430ab8779e 100644 (file)
@@ -133,6 +133,7 @@ wxString wxFileTypeImpl::GetCommand(const wxChar *verb) const
                 }
             }
 
+#if wxUSE_DDE
             // look whether we must issue some DDE requests to the application
             // (and not just launch it)
             strKey += _T("\\DDEExec");
@@ -155,7 +156,9 @@ wxString wxFileTypeImpl::GetCommand(const wxChar *verb) const
                         << _T('#') << ddeTopic
                         << _T('#') << ddeCommand;
             }
-            else if ( !foundFilename ) {
+            else
+#endif // wxUSE_DDE
+                if ( !foundFilename ) {
                 // we didn't find any '%1' - the application doesn't know which
                 // file to open (note that we only do it if there is no DDEExec
                 // subkey)