mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
store start URL statically
svn path=/trunk/; revision=13327
This commit is contained in:
parent
47335997a6
commit
9e0b60cb02
1 changed files with 1 additions and 3 deletions
|
@ -44,10 +44,8 @@ HWND MainFrameBase::Create(LPCTSTR url, UINT cmdshow)
|
||||||
//@@hMainFrame = MainFrame::Create(url);
|
//@@hMainFrame = MainFrame::Create(url);
|
||||||
|
|
||||||
if (hMainFrame) {
|
if (hMainFrame) {
|
||||||
String sPath;
|
|
||||||
|
|
||||||
if (url) {
|
if (url) {
|
||||||
sPath = url; // copy url to avoid accessing freed memory
|
static String sPath = url; // copy url to avoid accessing freed memory
|
||||||
url = sPath;
|
url = sPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue