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; }