From 9e0b60cb02bee854acdadcbfccd17e2b06332dd2 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Thu, 27 Jan 2005 00:18:30 +0000 Subject: [PATCH] store start URL statically svn path=/trunk/; revision=13327 --- reactos/subsys/system/ibrowser/mainframe.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/reactos/subsys/system/ibrowser/mainframe.cpp b/reactos/subsys/system/ibrowser/mainframe.cpp index f6112bc10bb..35e2fb12d94 100644 --- a/reactos/subsys/system/ibrowser/mainframe.cpp +++ b/reactos/subsys/system/ibrowser/mainframe.cpp @@ -44,10 +44,8 @@ HWND MainFrameBase::Create(LPCTSTR url, UINT cmdshow) //@@hMainFrame = MainFrame::Create(url); if (hMainFrame) { - String sPath; - if (url) { - sPath = url; // copy url to avoid accessing freed memory + static String sPath = url; // copy url to avoid accessing freed memory url = sPath; }