From 0fc75e8bd1af2e5ed992d6ef9e7e6cdde21c2bf5 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Thu, 27 Jan 2005 00:20:40 +0000 Subject: [PATCH] store startup path statically svn path=/trunk/; revision=13328 --- reactos/subsys/system/explorer/shell/mainframe.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/subsys/system/explorer/shell/mainframe.cpp b/reactos/subsys/system/explorer/shell/mainframe.cpp index 38df78cd364..fadbec1907a 100644 --- a/reactos/subsys/system/explorer/shell/mainframe.cpp +++ b/reactos/subsys/system/explorer/shell/mainframe.cpp @@ -50,13 +50,12 @@ HWND MainFrameBase::Create(LPCTSTR path, bool mdi, UINT cmdshow) hMainFrame = SDIMainFrame::Create(); if (hMainFrame) { - String sPath; HWND hwndOld = g_Globals._hMainWnd; g_Globals._hMainWnd = hMainFrame; if (path) { - sPath = path; // copy path to avoid accessing freed memory + static String sPath = path; // copy path to avoid accessing freed memory path = sPath; }