use wxRegKey::QueryDefaultValue() explicitly to fix DMC compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-10-20 11:08:05 +00:00
parent dd639a4f27
commit 53b849eadf

View File

@@ -1027,7 +1027,8 @@ static bool DoLaunchDefaultBrowser(const wxString& urlOrig, int flags)
static const wxChar *TOPIC_OPEN_URL = wxT("WWW_OpenURL"); static const wxChar *TOPIC_OPEN_URL = wxT("WWW_OpenURL");
wxString ddeCmd; wxString ddeCmd;
wxRegKey keyTopic(keyDDE, wxT("topic")); wxRegKey keyTopic(keyDDE, wxT("topic"));
bool ok = keyTopic.Exists() && keyTopic == TOPIC_OPEN_URL; bool ok = keyTopic.Exists() &&
keyTopic.QueryDefaultValue() == TOPIC_OPEN_URL;
if ( ok ) if ( ok )
{ {
ddeCmd = keyDDE.QueryDefaultValue(); ddeCmd = keyDDE.QueryDefaultValue();