Code clarification.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d83c04e6a5
commit
ae6c8147aa
@ -553,12 +553,13 @@ bool wxLaunchDefaultBrowser(const wxString& url)
|
||||
wxRegKey keyDDE(key, wxT("DDEExec"));
|
||||
if ( keyDDE.Exists() )
|
||||
{
|
||||
wxString ddeTopic = wxRegKey(keyDDE, wxT("topic"));
|
||||
wxRegKey keyTopic(keyDDE, wxT("topic"));
|
||||
wxString ddeTopic = keyTopic.QueryDefaultValue();
|
||||
|
||||
// we only know the syntax of WWW_OpenURL DDE request
|
||||
if ( ddeTopic == wxT("WWW_OpenURL") )
|
||||
{
|
||||
wxString ddeCmd = keyDDE;
|
||||
wxString ddeCmd = keyDDE.QueryDefaultValue();
|
||||
|
||||
// this is a bit naive but should work as -1 can't appear
|
||||
// elsewhere in the DDE topic, normally
|
||||
@ -1155,4 +1156,3 @@ bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
|
||||
#endif // !wxGTK
|
||||
|
||||
#endif // wxUSE_GUI
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user