]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/utilscmn.cpp
fix substr() calls broken by r56215 (#10198)
[wxWidgets.git] / src / common / utilscmn.cpp
index 24cd3374d38beeee795757a0ce102e65a991fe8a..a498ce07e6e33ec206442ae4d917d09c5a7cf77c 100644 (file)
@@ -1027,7 +1027,8 @@ static bool DoLaunchDefaultBrowser(const wxString& urlOrig, int flags)
                 static const wxChar *TOPIC_OPEN_URL = wxT("WWW_OpenURL");
                 wxString ddeCmd;
                 wxRegKey keyTopic(keyDDE, wxT("topic"));
-                bool ok = keyTopic.Exists() && keyTopic == TOPIC_OPEN_URL;
+                bool ok = keyTopic.Exists() &&
+                            keyTopic.QueryDefaultValue() == TOPIC_OPEN_URL;
                 if ( ok )
                 {
                     ddeCmd = keyDDE.QueryDefaultValue();